Skip to content

Commit

Permalink
Fix #518 by replacing removed line breaks with whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusdahlstrand committed Sep 9, 2013
1 parent f909416 commit ec0e5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/jslib/optimize.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ function (lang, logger, envOptimize, file, parse,
}
//Get rid of newlines.
if (config.optimizeCss.indexOf(".keepLines") === -1) {
fileContents = fileContents.replace(/[\r\n]/g, "");
fileContents = fileContents.replace(/[\r\n]/g, " ");
fileContents = fileContents.replace(/\s+/g, " ");
fileContents = fileContents.replace(/\{\s/g, "{");
fileContents = fileContents.replace(/\s\}/g, "}");
Expand Down

0 comments on commit ec0e5ae

Please sign in to comment.