summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2009-07-16 01:37:29 +0200
committerAnika Henke <anika@selfthinker.org>2009-07-16 01:37:29 +0200
commit69ddc3329189ee8067c883ad680a04ebd335d1a2 (patch)
tree485fb263c26a5ff10f7d1345591d2427e57d5a7c /inc/parserutils.php
parent69db0caf33d28c400e259b5455173c70f44a2063 (diff)
downloadrpg-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.php2
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);
}