Commit 89942b12 by Aaron Leung

Better emission of block directives.

parent 85e627df
...@@ -367,8 +367,9 @@ namespace Sass { ...@@ -367,8 +367,9 @@ namespace Sass {
} }
} break; } break;
case ruleset: { case ruleset:
Node sel_group(at(2)); case block_directive: {
Node sel_group(at(type() == ruleset ? 2 : 0));
Node block(at(1)); Node block(at(1));
if (block.has_expansions()) block.flatten(); if (block.has_expansions()) block.flatten();
...@@ -420,12 +421,12 @@ namespace Sass { ...@@ -420,12 +421,12 @@ namespace Sass {
buf << ";"; buf << ";";
} break; } break;
case block_directive: { // case block_directive: {
buf << string(2*depth, ' '); // buf << string(2*depth, ' ');
buf << at(0).to_string() << " {" << endl; // buf << at(0).to_string() << " {" << endl;
at(1).emit_nested_css(buf, depth+1, false, false); // at(1).emit_nested_css(buf, depth+1, false, false);
buf << " }" << endl; // buf << " }" << endl << endl;
} break; // } break;
case propset: { case propset: {
emit_propset(buf, depth, ""); emit_propset(buf, depth, "");
......
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