jenkins-bot has submitted this change and it was merged.

Change subject: Bug 71857: Strip position style in all math modes
......................................................................


Bug 71857: Strip position style in all math modes

Change-Id: Ib965e687ae4e7afe86f92b497ffcbc349950fecf
---
M MathMathML.php
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Physikerwelt: Looks good to me, approved
  GWicke: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/MathMathML.php b/MathMathML.php
index b7afae3..b57d738 100644
--- a/MathMathML.php
+++ b/MathMathML.php
@@ -349,8 +349,9 @@
                        $style .= " ".$styles[1]; // merge styles
                        if ( $this->getMathStyle() === MW_MATHSTYLE_DISPLAY ) {
                                // TODO: Improve style cleaning
-                               $style = preg_replace( 
'/margin\-(left|right)\:\s*\d+(\%|in|cm|mm|em|ex|pt|pc|px)\;|position:\s*absolute;\s*left:\s*0px;/g',
 '', $style );
+                               $style = preg_replace( 
'/margin\-(left|right)\:\s*\d+(\%|in|cm|mm|em|ex|pt|pc|px)\;/', '', $style );
                        }
+                       $style = preg_replace( 
'/position:\s*absolute;\s*left:\s*0px;/', '', $style );
                }
                // TODO: Figure out if there is a way to construct
                // a SVGReader from a string that represents the SVG

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib965e687ae4e7afe86f92b497ffcbc349950fecf
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Physikerwelt <[email protected]>
Gerrit-Reviewer: TheDJ <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to