don't create a pre for a whitespace-only line
authorGabriel Wicke <gwicke@users.mediawiki.org>
Fri, 14 May 2004 22:09:33 +0000 (22:09 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Fri, 14 May 2004 22:09:33 +0000 (22:09 +0000)
includes/Parser.php

index 0fcf83f..e292278 100644 (file)
@@ -1256,7 +1256,7 @@ class Parser
                                                $inBlockElem = true;
                                        }
                                } else if ( !$inBlockElem ) {
-                                       if ( " " == $t{0} ) {
+                                       if ( " " == $t{0} and trim($t) != '' ) {
                                                // pre
                                                if ($this->mLastSection != 'pre') {
                                                        $paragraphStack = false;