From 579591f932dd8e32590142eb420057b345769f17 Mon Sep 17 00:00:00 2001 From: GWicke Date: Fri, 10 Oct 2014 01:01:13 +0000 Subject: [PATCH] Revert "Bug 70119: Strip style from SVG image" This is now handled in mathoid by https://gerrit.wikimedia.org/r/165948 This reverts commit 1b4124109166f5560fcdb64b6477c7994cb9e80b. Change-Id: Ia8bc6eb6daebc4d28135602f483492b878928565 --- SpecialMathShowImage.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/SpecialMathShowImage.php b/SpecialMathShowImage.php index 5d46710..32f2f08 100644 --- a/SpecialMathShowImage.php +++ b/SpecialMathShowImage.php @@ -99,8 +99,6 @@ class SpecialMathShowImage extends SpecialPage { $output = $this->renderer->getPng(); } else { $output = $this->renderer->getSvg(); - // Strip the first style tag - $output = preg_replace( '/ style="[^"]+"/', '', $output, 1 ); } } else { // Error message in PNG not supported