mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-21 21:31:11 +01:00
Fix a _minimumIndentation() edge case (#218)
This commit is contained in:
parent
67494e2b2a
commit
116bd3a8af
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user