now pre for real
authorGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 10 Apr 2004 03:09:52 +0000 (03:09 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 10 Apr 2004 03:09:52 +0000 (03:09 +0000)
includes/Parser.php

index 5ba1201..1bec4ab 100644 (file)
@@ -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) ) {