Commit b37f65ba authored by Gábor Hojtsy's avatar Gábor Hojtsy

#472820 by rfay, Rob Loach, mfb, sun, andypost: do not remove newlines in CSS...

#472820 by rfay, Rob Loach, mfb, sun, andypost: do not remove newlines in CSS aggregation; it breaks certain valid CSS structures
parent 37c9b348
......@@ -2009,8 +2009,7 @@ function drupal_load_stylesheet($file, $optimize = NULL) {
// Perform some safe CSS optimizations.
$contents = preg_replace('<
\s*([@{}:;,]|\)\s|\s\()\s* | # Remove whitespace around separators, but keep space around parentheses.
/\*([^*\\\\]|\*(?!/))+\*/ | # Remove comments that are not CSS hacks.
[\n\r] # Remove line breaks.
/\*([^*\\\\]|\*(?!/))+\*/ # Remove comments that are not CSS hacks.
>x', '\1', $contents);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment