Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 912c724bdf5eb159f415c8b80ebb3666bffcf68c 1 parent da9a4bb
@timbunce timbunce authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  flamegraph.pl
View
2  flamegraph.pl
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.