Commit 24e20128 by Hampton Catlin

Merge branch 'master' of github.com:hcatlin/libsass

parents a311e89e bfc8bd33
...@@ -93,16 +93,19 @@ namespace Sass { ...@@ -93,16 +93,19 @@ namespace Sass {
buf << ";" << endl; buf << ";" << endl;
break; break;
case clauses: case clauses:
buf << " {" << endl; if (children.size() > 0) {
for (int i = 0; i < children.size(); ++i) buf << " {" << endl;
children[i].emit_expanded_css(buf, prefix); for (int i = 0; i < children.size(); ++i)
buf << "}" << endl; children[i].emit_expanded_css(buf, prefix);
buf << "}" << endl;
}
for (int i = 0; i < opt_children.size(); ++i) for (int i = 0; i < opt_children.size(); ++i)
opt_children[i].emit_expanded_css(buf, prefix); opt_children[i].emit_expanded_css(buf, prefix);
break; break;
case ruleset: case ruleset:
buf << prefix; buf << prefix;
children[0].emit_expanded_css(buf, prefix); if (children[1].children.size() > 0)
children[0].emit_expanded_css(buf, prefix);
string newprefix(prefix.empty() ? prefix : prefix + " "); string newprefix(prefix.empty() ? prefix : prefix + " ");
children[1].emit_expanded_css(buf, newprefix + string(children[0].token)); children[1].emit_expanded_css(buf, newprefix + string(children[0].token));
break; 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