doBlockLevels after unstrip to avoid wrapping templates in p's (which is often invalid)
authorGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 12 Apr 2004 18:49:55 +0000 (18:49 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Mon, 12 Apr 2004 18:49:55 +0000 (18:49 +0000)
includes/Parser.php

index 5594f9e..7ba1096 100644 (file)
@@ -92,8 +92,8 @@ class Parser
                $text = $this->strip( $text, $this->mStripState );
                $text = $this->internalParse( $text, $linestart );
                # only once and next-to-last
-               $text = $this->doBlockLevels( $text, $linestart );              
                $text = $this->unstrip( $text, $this->mStripState );
+               $text = $this->doBlockLevels( $text, $linestart );              
                # Clean up special characters, only run once and last
                $fixtags = array(
                        "/<hr *>/i" => '<hr/>',