Permalink
Browse files

default target=_top else links will open within SVG <object>

  • Loading branch information...
1 parent da9a4bb commit 912c724bdf5eb159f415c8b80ebb3666bffcf68c @timbunce timbunce committed Mar 18, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 flamegraph.pl
View
@@ -143,6 +143,8 @@
if ($attr->{href}) {
my @a_attr;
push @a_attr, sprintf qq/xlink:href="%s"/, $attr->{href} if $attr->{href};
+ # default target=_top else links will open within SVG <object>
+ push @a_attr, sprintf qq/target="%s"/, $attr->{target} || "_top";
push @a_attr, $attr->{a_extra} if $attr->{a_extra};
$self->{svg} .= sprintf qq/<a %s>/, join(' ', @a_attr);
}

0 comments on commit 912c724

Please sign in to comment.