dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06825cb
)
parser: closeParagraph already resets the lastSection
author
Arlo Breault
<abreault@wikimedia.org>
Wed, 6 Mar 2019 21:49:07 +0000
(16:49 -0500)
committer
Legoktm
<legoktm@member.fsf.org>
Wed, 13 Mar 2019 03:42:43 +0000
(
03:42
+0000)
Change-Id: Ic24c9aa25852cc786a5ca438c2c1e9031f9e7c17
includes/parser/BlockLevelPass.php
patch
|
blob
|
history
diff --git
a/includes/parser/BlockLevelPass.php
b/includes/parser/BlockLevelPass.php
index
a69b3d2
..
288a527
100644
(file)
--- 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 = '<p>';
} else {
$pendingPTag = '</p><p>';