Skip to content
Browse files

At-rule can be followed by a block.

  • Loading branch information...
1 parent 4a5c1db commit d24092aeff46922bca2be91908959257328b4e74 Ariya Hidayat committed Sep 23, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 cssbeautify.js
View
9 cssbeautify.js
@@ -163,6 +163,15 @@ function cssbeautify(style, opt) {
state = State.Start;
continue;
}
+ // or a block
+ if (ch === '{') {
+ formatted = trimRight(formatted);
+ formatted += openbrace;
+ if (ch2 !== '\n') {
+ formatted += '\n';
+ }
+ continue;
+ }
formatted += ch;
continue;
}

0 comments on commit d24092a

Please sign in to comment.
Something went wrong with that request. Please try again.