From: Gabriel Wicke Date: Sat, 10 Apr 2004 03:09:52 +0000 (+0000) Subject: now pre for real X-Git-Tag: 1.3.0beta1~487 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=f2ac7b2598bb4f5c284e1f65fce9991504cf6d42;p=lhc%2Fweb%2Fwiklou.git now pre for real --- diff --git a/includes/Parser.php b/includes/Parser.php index 5ba1201059..1bec4abc3a 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1105,9 +1105,11 @@ class Parser } else if ( !$inBlockElem ) { if ( " " == $t{0} ) { $newSection = "pre"; - $text .= $this->closeParagraph(); - $text .= "<" . $newSection . ">"; - $this->mLastSection = $newSection; + if ($this->mLastSection != 'pre') { + $text .= $this->closeParagraph(); + $text .= "<" . $newSection . ">"; + $this->mLastSection = $newSection; + } } else { $newSection = "p"; if ( '' == trim($t) ) {