diff options
author | Anika Henke <anika@selfthinker.org> | 2009-07-16 01:37:29 +0200 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2009-07-16 01:37:29 +0200 |
commit | 69ddc3329189ee8067c883ad680a04ebd335d1a2 (patch) | |
tree | 485fb263c26a5ff10f7d1345591d2427e57d5a7c /inc/parserutils.php | |
parent | 69db0caf33d28c400e259b5455173c70f44a2063 (diff) | |
download | rpg-69ddc3329189ee8067c883ad680a04ebd335d1a2.tar.gz rpg-69ddc3329189ee8067c883ad680a04ebd335d1a2.tar.bz2 |
fixed too strict trim on non-parsed blocks
darcs-hash:20090715233729-f7d6d-44fc39da1eb65d138e7987f90c613b10978652f8.gz
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r-- | inc/parserutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 <BR> throughout the highlighted text - $highlighted_code = preg_replace('!^<pre[^>]*>|</pre>$!','',$geshi->parse_code()); + $highlighted_code = trim(preg_replace('!^<pre[^>]*>|</pre>$!','',$geshi->parse_code()),"\n\r"); io_saveFile($cache,$highlighted_code); } |