From: Steve Sanbeg Date: Thu, 20 Nov 2008 20:50:12 +0000 (+0000) Subject: this should prevent the parser from inserting

tags around the second line of... X-Git-Tag: 1.31.0-rc.0~44250 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=6c54601676e3b4e98e3f4306eb663c5d70873505;p=lhc%2Fweb%2Fwiklou.git this should prevent the parser from inserting

tags around the second line of divs --- 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'; }