diff --git a/lib/src/visitor/serialize.dart b/lib/src/visitor/serialize.dart index 7d654226..7e83cae1 100644 --- a/lib/src/visitor/serialize.dart +++ b/lib/src/visitor/serialize.dart @@ -376,6 +376,11 @@ class _SerializeCssVisitor void _visitChildren(Iterable children) { _buffer.writeCharCode($lbrace); + if (children.isEmpty) { + _buffer.writeCharCode($rbrace); + return; + } + _buffer.writeln(); _indent(() { for (var child in children) {