diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index a47ceb5eb59af87a43532a471549dc39c1277bda..e75fcb4c729c254d01dc2b2b498d533e58b2c8c8 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -367,7 +367,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { } function preformatted($text) { - $this->doc .= '<pre class="'.$class.'">' . trim($this->_xmlEntities($text)) . '</pre>'. DOKU_LF; + $this->doc .= '<pre class="code">' . trim($this->_xmlEntities($text),"\n\r") . '</pre>'. DOKU_LF; } function file($text, $language=null, $filename=null) {