From 5dc6d51091b718d37d2c4b30da1e01b5b95333f8 Mon Sep 17 00:00:00 2001 From: Purwandi Date: Sat, 19 Jan 2013 17:43:08 +0700 Subject: Support minify table block --- system/core/Output.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'system/core/Output.php') diff --git a/system/core/Output.php b/system/core/Output.php index e6c48b5dd..cf5178a0c 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -543,7 +543,7 @@ class CI_Output { } $expire = time() + ($this->cache_expiration * 60); - + // Put together our serialized info. $cache_info = serialize(array( 'expire' => $expire, @@ -606,7 +606,7 @@ class CI_Output { { return FALSE; } - + $cache_info = unserialize($match[1]); $expire = $cache_info['expire']; @@ -625,7 +625,7 @@ class CI_Output { // Or else send the HTTP cache control headers. $this->set_cache_header($last_modified, $expire); } - + // Add headers from cache file. foreach ($cache_info['headers'] as $header) { @@ -756,7 +756,7 @@ class CI_Output { $output = preg_replace('{\s*\s*}msU', '', $output); // 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*/is', '$1', $output); + $output = preg_replace('/\s*(<\/?(html|head|title|meta|script|link|style|body|table|thead|tbody|tfoot|tr|th|td|h[1-6]|div|p|br)[^>]*>)\s*/is', '$1', $output); // Replace mangled
 etc. tags with unprocessed ones.
 
-- 
cgit v1.2.3-24-g4f1b