Skip to content

Commit

Permalink
Update to remove empty rules properly even in @-rule blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 19, 2009
1 parent b85cdcc commit 92167fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/yahoo/platform/yui/compressor/CssCompressor.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void compress(Writer out, int linebreakpos)
css = sb.toString();

// Remove empty rules.
css = css.replaceAll("[^\\}]+\\{;\\}", "");
css = css.replaceAll("[^\\}\\{]+\\{\\}", "");

if (linebreakpos >= 0) {
// Some source control tools don't like it when files containing lines longer
Expand Down

0 comments on commit 92167fc

Please sign in to comment.