Skip to content

Commit

Permalink
At-rule can be followed by a block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariya Hidayat committed Sep 24, 2011
1 parent 4a5c1db commit d24092a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cssbeautify.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit d24092a

Please sign in to comment.