diff --git a/lib/src/visitor/serialize.dart b/lib/src/visitor/serialize.dart index 7e8763f6..2ed8987e 100644 --- a/lib/src/visitor/serialize.dart +++ b/lib/src/visitor/serialize.dart @@ -284,7 +284,7 @@ class _SerializeVisitor implements CssVisitor, ValueVisitor, SelectorVisitor { int _minimumIndentation(String text) { var scanner = new LineScanner(text); while (!scanner.isDone && scanner.readChar() != $lf) {} - if (scanner.isDone) return null; + if (scanner.isDone) return scanner.peekChar(-1) == $lf ? -1 : null; int min; while (!scanner.isDone) {