Commit a210fc7f by Aaron Leung

Slight correction to the printing/condensation of dashes.

parent 2a482844
...@@ -493,6 +493,7 @@ namespace Sass { ...@@ -493,6 +493,7 @@ namespace Sass {
} }
else { else {
// TO DO: disallow division and multiplication on lists // TO DO: disallow division and multiplication on lists
if (op == Node::sub) acc << new_Node(Node::sub, acc.path(), acc.line(), Token::make());
acc.push_back(rhs); acc.push_back(rhs);
} }
......
...@@ -140,9 +140,7 @@ namespace Sass { ...@@ -140,9 +140,7 @@ namespace Sass {
case term: { case term: {
string result(at(0).to_string()); string result(at(0).to_string());
for (size_t i = 1, S = size(); i < S; ++i) { for (size_t i = 1, S = size(); i < S; ++i) {
if (!(at(i).type() == add || if (at(i).type() != add && at(i).type() != mul) {
// at(i).type == sub || // another edge case -- consider uncommenting
at(i).type() == mul)) {
result += at(i).to_string(); result += at(i).to_string();
} }
} }
...@@ -162,7 +160,6 @@ namespace Sass { ...@@ -162,7 +160,6 @@ namespace Sass {
stringstream ss; stringstream ss;
ss << "@import url("; ss << "@import url(";
ss << at(0).to_string(); ss << at(0).to_string();
// cerr << content.token.to_string() << endl;
ss << ")"; ss << ")";
return ss.str(); return ss.str();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment