Index: includes/common.inc
===================================================================
--- includes/common.inc	(revision 2)
+++ includes/common.inc	(working copy)
@@ -2580,10 +2580,10 @@
 
   if ($optimize) {
     // Perform some safe CSS optimizations.
+    $contents = preg_replace('[\n\r]',' ',$contents);  # Replace linebreaks with spaces
     $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.
       >x', '\1', $contents);
   }
   return $contents;
