Commit 24e20128 by Hampton Catlin

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

parents a311e89e bfc8bd33
...@@ -93,15 +93,18 @@ namespace Sass { ...@@ -93,15 +93,18 @@ namespace Sass {
buf << ";" << endl; buf << ";" << endl;
break; break;
case clauses: case clauses:
if (children.size() > 0) {
buf << " {" << endl; buf << " {" << endl;
for (int i = 0; i < children.size(); ++i) for (int i = 0; i < children.size(); ++i)
children[i].emit_expanded_css(buf, prefix); children[i].emit_expanded_css(buf, prefix);
buf << "}" << endl; 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;
if (children[1].children.size() > 0)
children[0].emit_expanded_css(buf, prefix); 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));
......
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