Index: maintenance/parserTests.txt
===================================================================
--- maintenance/parserTests.txt (revision 64567)
+++ maintenance/parserTests.txt (working copy)
@@ -5383,8 +5383,6 @@
!! input
{{Special:Prefixindex/Xyzzyx}}
!! result
-
-
!! end
@@ -5396,11 +5394,7 @@
{{Special:Prefixindex/Xyzzyx}}
{{Special:Prefixindex/Xyzzyx}}
!! result
-
-
-
-
!! end
Index: includes/parser/Parser.php
===================================================================
--- includes/parser/Parser.php (revision 64567)
+++ includes/parser/Parser.php (working copy)
@@ -3079,7 +3079,7 @@
# Add a blank line preceding, to prevent it from mucking up
# immediately preceding headings
if ( $isHTML ) {
- $text = "\n\n" . $this->insertStripItem( $text );
+ $text = "\n" . $this->insertStripItem( $text );
} elseif ( $nowiki && ( $this->ot['html'] || $this->ot['pre'] ) ) {
# Escape nowiki-style return values
$text = wfEscapeWikiText( $text );