parser: closeParagraph already resets the lastSection
authorArlo Breault <abreault@wikimedia.org>
Wed, 6 Mar 2019 21:49:07 +0000 (16:49 -0500)
committerLegoktm <legoktm@member.fsf.org>
Wed, 13 Mar 2019 03:42:43 +0000 (03:42 +0000)
Change-Id: Ic24c9aa25852cc786a5ca438c2c1e9031f9e7c17

includes/parser/BlockLevelPass.php

index a69b3d2..288a527 100644 (file)
@@ -357,7 +357,6 @@ class BlockLevelPass {
                                                if ( $pendingPTag ) {
                                                        $output .= $this->closeParagraph();
                                                        $pendingPTag = false;
-                                                       $this->lastSection = '';
                                                }
                                        } else {
                                                # paragraph
@@ -369,7 +368,6 @@ class BlockLevelPass {
                                                        } else {
                                                                if ( $this->lastSection !== 'p' ) {
                                                                        $output .= $this->closeParagraph();
-                                                                       $this->lastSection = '';
                                                                        $pendingPTag = '<p>';
                                                                } else {
                                                                        $pendingPTag = '</p><p>';