Skip to content

Commit

Permalink
[FIX] Svg function returns svg graph together with conatiner.
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Sep 6, 2016
1 parent e6ea6f6 commit 62db648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/widgets/webview.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ def svg(self):
""" Return SVG string of the first SVG element on the page, or
raise ValueError if not any. """
html = self.frame.toHtml()
return html[html.index('<svg '):html.index('</svg>') + 6]
return html[html.index('<div id="container"'):-html[::-1].index('>vid/<')]

0 comments on commit 62db648

Please sign in to comment.