diff options
author | Thor <thor@bandwidthbeta.com> | 2012-01-28 10:48:04 +0100 |
---|---|---|
committer | Thor <thor@bandwidthbeta.com> | 2012-01-28 10:48:04 +0100 |
commit | 1b8d0ef6491b77375bb068711bc5e10fe4ca4b8f (patch) | |
tree | 0d6b46809197e397eef07e012a6142a6618afdec /system/core/Output.php | |
parent | 6c5992da5cf3579a29079b0aae3e9ba0700fda5c (diff) |
Fixed some spaces.
Diffstat (limited to 'system/core/Output.php')
-rwxr-xr-x | system/core/Output.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/system/core/Output.php b/system/core/Output.php index d8c230968..468274002 100755 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -604,17 +604,17 @@ class CI_Output { preg_match_all('{<style.+</style>}msU', $output, $style_clean); foreach ($style_clean[0] as $s) { - $output = str_replace($s, $this->minify($s,'text/css'), $output); + $output = str_replace($s, $this->minify($s, 'text/css'), $output); } // Minify the javascript in <script> tags. foreach ($javascript_clean[0] as $s) { - $javascript_mini[] = $this->minify($s,'text/javascript'); + $javascript_mini[] = $this->minify($s, 'text/javascript'); } // Replace multiple spaces with a single space. - $output = preg_replace('!\s{2,}!',' ', $output); + $output = preg_replace('!\s{2,}!', ' ', $output); // Remove comments (non-MSIE conditionals) $output = preg_replace('{\s*<!--[^\[].*-->\s*}msU', '', $output); @@ -670,12 +670,7 @@ class CI_Output { case 'text/javascript': - // Replace multiple whitespace characters with a single newline. - //$output = preg_replace('!\s{2,}!',"\n", $output); - - // Remove excessive newlines. - //$output = preg_replace('!(;|{|})\n!','$1', $output); - + // Currently leaves JavaScript untouched. break; } |