Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.700 diff -u -F^f -r1.700 common.inc --- includes/common.inc 12 Oct 2007 14:10:17 -0000 1.700 +++ includes/common.inc 16 Oct 2007 12:50:50 -0000 @@ -1968,6 +1968,8 @@ function _drupal_compress_js($script) { // Protect spaces between keywords and variables array('/(?<=[A-Za-z0-9_$])\\s+(?=[A-Za-z0-9_$])/', ' '), array('/([+\\-])\\s+([+\\-])/', '$1 $2'), + // Protect newlines after close-braces + array('/}\\s+/', "}\n"), // Remove all other white-space array('/\\s+/', ''), );