Clean up output of childless rules.

This commit is contained in:
Natalie Weizenbaum 2016-08-29 22:53:09 -07:00 committed by Natalie Weizenbaum
parent 83c8c1a9b7
commit 9b183ed32c

View File

@ -376,6 +376,11 @@ class _SerializeCssVisitor
void _visitChildren(Iterable<CssNode> children) {
_buffer.writeCharCode($lbrace);
if (children.isEmpty) {
_buffer.writeCharCode($rbrace);
return;
}
_buffer.writeln();
_indent(() {
for (var child in children) {