From 6c54601676e3b4e98e3f4306eb663c5d70873505 Mon Sep 17 00:00:00 2001 From: Steve Sanbeg Date: Thu, 20 Nov 2008 20:50:12 +0000 Subject: [PATCH] this should prevent the parser from inserting

tags around the second line of divs --- includes/parser/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index fe016a8412..881d19ab4e 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -2211,7 +2211,7 @@ class Parser $output .= $paragraphStack; $paragraphStack = false; $this->mLastSection = 'p'; - } else if ($this->mLastSection !== 'p') { + } else if ($this->mLastSection !== 'p' and $this->mLastSection !== '') { $output .= $this->closeParagraph().'

'; $this->mLastSection = 'p'; } -- 2.20.1