Jackmcbarn has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/176481

Change subject: Make indicators use nowiki strip markers
......................................................................

Make indicators use nowiki strip markers

Currently, the indicator tag returns an empty string wrapped in a general
strip marker. This gets unstripped before doBlockLevels, which then sees
more blank lines in a row than there are really are, producing unwanted
blank lines in the output. This patch changes the empty string to be
wrapped in a nowiki strip marker, which isn't unstripped until after
doBlockLevels is done.

Bug: T76234
Change-Id: I902882496972727f96a6f7cc7ee2b0c9c9c1e07e
---
M includes/parser/CoreTagHooks.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/81/176481/1

diff --git a/includes/parser/CoreTagHooks.php b/includes/parser/CoreTagHooks.php
index 9755ea9..7a9155b 100644
--- a/includes/parser/CoreTagHooks.php
+++ b/includes/parser/CoreTagHooks.php
@@ -144,6 +144,6 @@
                        Parser::stripOuterParagraph( 
$parser->recursiveTagParseFully( $content, $frame ) )
                );
 
-               return '';
+               return array( '', 'markerType' => 'nowiki' );
        }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/176481
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I902882496972727f96a6f7cc7ee2b0c9c9c1e07e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jackmcbarn <jackmcb...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to