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