Skip to content

Commit

Permalink
Don't break inside brackets in declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw committed Dec 30, 2024
1 parent b99d3ac commit 8ad5805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/parse/stylesheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2999,7 +2999,8 @@ abstract class StylesheetParser extends Parser {
case $space || $tab:
buffer.writeCharCode(scanner.readChar());

case $lf || $cr || $ff when indented && !allowNewlines:
case $lf || $cr || $ff
when indented && !allowNewlines && brackets.isEmpty:
break loop;

case $lf || $cr || $ff:
Expand Down

0 comments on commit 8ad5805

Please sign in to comment.