this should prevent the parser from inserting <p> tags around the second line of...
authorSteve Sanbeg <sanbeg@users.mediawiki.org>
Thu, 20 Nov 2008 20:50:12 +0000 (20:50 +0000)
committerSteve Sanbeg <sanbeg@users.mediawiki.org>
Thu, 20 Nov 2008 20:50:12 +0000 (20:50 +0000)
includes/parser/Parser.php

index fe016a8..881d19a 100644 (file)
@@ -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().'<p>';
                                                                $this->mLastSection = 'p';
                                                        }