From 69ddc3329189ee8067c883ad680a04ebd335d1a2 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Thu, 16 Jul 2009 01:37:29 +0200 Subject: fixed too strict trim on non-parsed blocks darcs-hash:20090715233729-f7d6d-44fc39da1eb65d138e7987f90c613b10978652f8.gz --- inc/parserutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/parserutils.php') diff --git a/inc/parserutils.php b/inc/parserutils.php index e1f9922f0..6dadbd0c6 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -657,7 +657,7 @@ function p_xhtml_cached_geshi($code, $language, $wrapper='pre') { // remove GeSHi's wrapper element (we'll replace it with our own later) // we need to use a GeSHi wrapper to avoid
throughout the highlighted text - $highlighted_code = preg_replace('!^]*>|$!','',$geshi->parse_code()); + $highlighted_code = trim(preg_replace('!^]*>|$!','',$geshi->parse_code()),"\n\r"); io_saveFile($cache,$highlighted_code); } -- cgit v1.2.3