mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-21 21:31:11 +01:00
Clean up output of childless rules.
This commit is contained in:
parent
83c8c1a9b7
commit
9b183ed32c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user