diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-12-12 04:44:46 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-12-12 04:44:46 +0000 |
commit | dd4b959ad23456b1861c411133888afa70aaad78 (patch) | |
tree | 47c973cbb5ea2acb2993477f60c9fa93f9a48b43 /includes/common.inc | |
parent | 72d80d208fa8bd0c6c0f4688dcbdeb98b10e0d6f (diff) | |
download | brdo-dd4b959ad23456b1861c411133888afa70aaad78.tar.gz brdo-dd4b959ad23456b1861c411133888afa70aaad78.tar.bz2 |
#102597: Fix overzealous CSS compressor.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 6 |
1 files changed, 3 insertions, 3 deletions
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. |