From 37e1db3273af79e1e9047f781f665b5dc4f557b9 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Mon, 12 Apr 2004 18:49:55 +0000 Subject: [PATCH] doBlockLevels after unstrip to avoid wrapping templates in p's (which is often invalid) --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index 5594f9efaf..7ba1096ee5 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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( "/
/i" => '
', -- 2.20.1