From 0ac75577ac5758ab5ac651abd98e9d63f9c3190d Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 7 Jan 2012 11:54:25 +1100 Subject: [PATCH] use when new lines are a must if minify_html is enabled --- inc/functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/functions.php b/inc/functions.php index 3e2dc4b4..f078273c 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1276,12 +1276,17 @@ } function quote($body, $quote=true) { + global $config; + $body = str_replace('
', "\n", $body); $body = strip_tags($body); $body = preg_replace("/(^|\n)/", '$1>', $body); + if($config['minify_html']) + $body = str_replace("\n", ' ', $body); + return $body . "\n"; }