diff --git a/lib/plugins/info/syntax.php b/lib/plugins/info/syntax.php index 0a1b12d8168a530cdbc53ae58c2ccc4dfd3e8040..7cfb76033f455ef3d45518cf935ee8ebe42cdb04 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 .= '<br />'; - $renderer->doc .= htmlspecialchars($info['desc']); + $renderer->doc .= strtr(htmlspecialchars($info['desc']),array("\n","<br />")); $renderer->doc .= '</li>'; unset($po); }