Skip to content

Commit

Permalink
avoid old workaround;breaks compat now
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Jan 9, 2025
1 parent f914ac8 commit 791198f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/MathVentures/gen-bugs-in-square-svg.pl
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,13 @@

my $text = $svg->xmlify( -namespace => "svg" );

# Workaround for Mozilla.
$text =~ s{<svg:svg}{<svg};
$text =~ s{</svg:svg>}{</svg>};
$text =~ s{(xmlns="([^"]+)")}{$1 xmlns:svg="$2"};
if (0)
{
# Workaround for Mozilla.
$text =~ s{<svg:svg}{<svg};
$text =~ s{</svg:svg>}{</svg>};
$text =~ s{(xmlns="([^"]+)")}{$1 xmlns:svg="$2"};
}
print $text;

=head1 COPYRIGHT & LICENSE
Expand Down

0 comments on commit 791198f

Please sign in to comment.