From f4e5a5701bfc0a178a6d0f350e55f9642120acb4 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 18 Aug 2005 17:57:11 +0200 Subject: info patch fix, correct error in render param name change, add support for line breaks in descriptions. darcs-hash:20050818155711-50fdc-ff16e581584524ef5e581ffb9a79a45855988aa4.gz --- lib/plugins/info/syntax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/plugins/info') diff --git a/lib/plugins/info/syntax.php b/lib/plugins/info/syntax.php index 0a1b12d81..7cfb76033 100644 --- a/lib/plugins/info/syntax.php +++ b/lib/plugins/info/syntax.php @@ -73,7 +73,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin { * Create output */ function render($format, &$renderer, $data) { - if($mode == 'xhtml'){ + if($format == 'xhtml'){ //handle various info stuff switch ($data[0]){ case 'version': @@ -119,7 +119,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin { $renderer->doc .= ' '; $renderer->emaillink($info['email'],$info['author']); $renderer->doc .= '
'; - $renderer->doc .= htmlspecialchars($info['desc']); + $renderer->doc .= strtr(htmlspecialchars($info['desc']),array("\n","
")); $renderer->doc .= ''; unset($po); } -- cgit v1.2.3