From dd4b959ad23456b1861c411133888afa70aaad78 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 12 Dec 2006 04:44:46 +0000 Subject: #102597: Fix overzealous CSS compressor. --- includes/common.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 0d8d3b477..f1aabbda8 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1503,9 +1503,9 @@ function drupal_build_css_cache($types, $filename) { // Perform some safe CSS optimizations. $data = preg_replace('< - \s*([@{}:;\)])\s* | # Remove whitespace around separators. - /\*([^*\\\\]|\*(?!/))+\*/ | # Remove comments that are not CSS hacks. - [\n\r] # Remove line breaks. + \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. >x', '\1', $data); // Create the CSS file. -- cgit v1.2.3