allow blank lines in preformatted text started by blanks. BUG #993991
authorJens Frank <jeluf@users.mediawiki.org>
Mon, 19 Jul 2004 19:03:43 +0000 (19:03 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Mon, 19 Jul 2004 19:03:43 +0000 (19:03 +0000)
includes/Parser.php

index 5ee3778..bcaf49f 100644 (file)
@@ -1344,7 +1344,7 @@ class Parser
                                                $inBlockElem = true;
                                        }
                                } else if ( !$inBlockElem && !$this->mInPre ) {
-                                       if ( " " == $t{0} and trim($t) != '' ) {
+                                       if ( " " == $t{0} and ( $this->mLastSection == 'pre' or trim($t) != '' ) ) {
                                                // pre
                                                if ($this->mLastSection != 'pre') {
                                                        $paragraphStack = false;