Phuedx has uploaded a new change for review.

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

Change subject: Don't flatten spans
......................................................................

Don't flatten spans

... so that per-span information for different languages, i.e. lang and
dir attributes and additional styles aren't lost.

Bug: T59582
Change-Id: If1b04714fdc0f4d581ddb858d8d53f6f340dc10b
---
M includes/ExtractFormatter.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TextExtracts 
refs/changes/96/183496/1

diff --git a/includes/ExtractFormatter.php b/includes/ExtractFormatter.php
index 6a6a261..eb90e1e 100644
--- a/includes/ExtractFormatter.php
+++ b/includes/ExtractFormatter.php
@@ -45,7 +45,7 @@
                if ( $plainText ) {
                        $this->flattenAllTags();
                } else {
-                       $this->flatten( array( 'span', 'a' ) );
+                       $this->flatten( array( 'a' ) );
                }
                wfProfileOut( __METHOD__ );
        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If1b04714fdc0f4d581ddb858d8d53f6f340dc10b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TextExtracts
Gerrit-Branch: master
Gerrit-Owner: Phuedx <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to