mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-04 02:27:47 +01:00
Properly inspect singleton lists.
This commit is contained in:
parent
794bdee476
commit
acb3b3712d
@ -297,6 +297,11 @@ class _SerializeCssVisitor
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var singleton = _inspect &&
|
||||||
|
value.contents.length == 1 &&
|
||||||
|
value.separator == ListSeparator.comma;
|
||||||
|
if (singleton) _buffer.writeCharCode($lparen);
|
||||||
|
|
||||||
_writeBetween(
|
_writeBetween(
|
||||||
_inspect
|
_inspect
|
||||||
? value.contents
|
? value.contents
|
||||||
@ -311,6 +316,11 @@ class _SerializeCssVisitor
|
|||||||
}
|
}
|
||||||
: (element) => element.accept(this));
|
: (element) => element.accept(this));
|
||||||
|
|
||||||
|
if (singleton) {
|
||||||
|
_buffer.writeCharCode($comma);
|
||||||
|
_buffer.writeCharCode($rparen);
|
||||||
|
}
|
||||||
|
|
||||||
if (value.hasBrackets) _buffer.writeCharCode($rbracket);
|
if (value.hasBrackets) _buffer.writeCharCode($rbracket);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user