From 852896dac73e74fd791a001b8ea6bf23aa9e7791 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 30 Jul 2006 22:14:42 +0200 Subject: strip trailing line in higlighted code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current code add 2 unwanted trailing lines in highlighted code. One is produced by DokuWiki's syntax and is fixed by this patch. The second one is created somewhere inside GeShi. A bug report was submitted upatream [1] [1] http://sourceforge.net/tracker/index.php?funcŪtail&aid31373&group_id4997&atidg0231 darcs-hash:20060730201442-7ad00-222a23a3bfccd7c53105e7175cdc9992be2d8076.gz --- inc/parserutils.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'inc/parserutils.php') diff --git a/inc/parserutils.php b/inc/parserutils.php index 1bebfc698..70d73a417 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -499,13 +499,12 @@ function p_get_first_heading($id){ * @author Christopher Smith */ function p_xhtml_cached_geshi($code, $language) { - $cache = getCacheName($language.$code,".code"); if (@file_exists($cache)) { $highlighted_code = io_readFile($cache, false); - touch($cache); + @touch($cache); } else { -- cgit v1.2.3