Commit dc41b0df by Aaron Leung

Got the optimized selectors to emit correctly.

parent 0dbb5f9c
......@@ -43,6 +43,7 @@ namespace Sass {
} break;
case selector: {
cerr << "emitting selector with " << size() << " children" << endl;
string result;
if (!has_backref && !prefix.empty()) {
result += prefix;
......@@ -64,7 +65,7 @@ namespace Sass {
for (int i = 1; i < size(); ++i) {
Node::Type t = at(i).type;
result += " ";
result += at(i).to_string(at(0).has_backref ? prefix : "");
result += at(i).to_string(at(i).has_backref ? prefix : "");
}
return result;
} break;
......
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