pre handling fix
authorGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 24 May 2004 10:25:49 +0000 (10:25 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 24 May 2004 10:25:49 +0000 (10:25 +0000)
includes/Parser.php

index 09026de..bfaf900 100644 (file)
@@ -1263,7 +1263,7 @@ class Parser
                                        } else {
                                                $inBlockElem = true;
                                        }
-                               } else if ( !$inBlockElem ) {
+                               } else if ( !$inBlockElem && !$this->mInPre ) {
                                        if ( " " == $t{0} and trim($t) != '' ) {
                                                // pre
                                                if ($this->mLastSection != 'pre') {