From fe3a04748bfa37a43872b8fff83565d37074807f Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Wed, 6 Mar 2019 16:49:07 -0500 Subject: [PATCH] parser: closeParagraph already resets the lastSection Change-Id: Ic24c9aa25852cc786a5ca438c2c1e9031f9e7c17 --- includes/parser/BlockLevelPass.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/parser/BlockLevelPass.php b/includes/parser/BlockLevelPass.php index a69b3d2a5a..288a52704e 100644 --- a/includes/parser/BlockLevelPass.php +++ b/includes/parser/BlockLevelPass.php @@ -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 = '

'; } else { $pendingPTag = '

'; -- 2.20.1