summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThor <thor@bandwidthbeta.com>2012-01-28 10:48:04 +0100
committerThor <thor@bandwidthbeta.com>2012-01-28 10:48:04 +0100
commit1b8d0ef6491b77375bb068711bc5e10fe4ca4b8f (patch)
tree0d6b46809197e397eef07e012a6142a6618afdec
parent6c5992da5cf3579a29079b0aae3e9ba0700fda5c (diff)
Fixed some spaces.
-rwxr-xr-xsystem/core/Output.php13
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;
}