From ff4ec7fefd39647db4a4b1a29c349a27f124670c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 21 Sep 2011 10:25:22 +0200 Subject: [PATCH] Fix #659: use object start/end tag. --- sphinx/ext/graphviz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py index 398c6bedf..eedcf2b99 100644 --- a/sphinx/ext/graphviz.py +++ b/sphinx/ext/graphviz.py @@ -177,7 +177,7 @@ def get_svg_tag(svgref, svgfile, imgcls=None): # The object tag works fine on Firefox and WebKit # Besides it's a hack, this strategy does not mess with templates. imgcss = imgcls and ' class="%s"' % imgcls or '' - return '\n' % \ + return '\n' % \ (svgref, imgcss, style)