diff options
author | Thor (atiredmachine) <thor@bandwidthbeta.com> | 2012-01-25 05:57:48 +0100 |
---|---|---|
committer | Thor (atiredmachine) <thor@bandwidthbeta.com> | 2012-01-25 05:57:48 +0100 |
commit | a2ae6e1e917b1d8f4aabb121143184135a42c80a (patch) | |
tree | 93222d30adc673819b3e98f07d3802ff66897690 /system/core | |
parent | d68c8192bbfb7c7d535f86dea987fd64d36a69a6 (diff) |
Tidying
Diffstat (limited to 'system/core')
-rwxr-xr-x | system/core/Output.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/core/Output.php b/system/core/Output.php index 8ed418a69..57d07ca7b 100755 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -597,10 +597,10 @@ class CI_Output { $output = str_replace($s, $this->minify($s,'css'), $output); } - // Replaces multiple spaces with a single space. + // Replace multiple spaces with a single space. $output = preg_replace('!\s{2,}!',"\n",$output); - // Removes spaces around block-level elements. + // Remove spaces around block-level elements. $output = preg_replace('{\s*(</?(html|head|title|meta|script|link|style|body|h[1-6]|div|p|br).*>)\s*}', '$1', $output); // Replace mangled <pre> etc. tags with unprocessed ones. @@ -616,7 +616,7 @@ class CI_Output { case 'css': - // Remove spaces around curly brackets + // Remove spaces around curly brackets, colons, and semi-colons $output = preg_replace('!\s*(:|;|}|{)\s*!','$1',$output); // Replace spaces with line breaks to limit line lengths |