From 4af5dc9ece54d0311b951c94543d8ff8b2d648f7 Mon Sep 17 00:00:00 2001 From: Njal Karevoll Date: Fri, 12 Aug 2011 09:15:02 +0200 Subject: The graphviz extension uses an empty tag to embed svg files, but for the object tag the start and the end tag are required (see http://www.w3.org/TR/html40/struct/objects.html#edef-OBJECT). Issue #659: https://bitbucket.org/birkenfeld/sphinx/issue/659/patch-graphviz-object-tag-to-embed-svg --- 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 b54cb3c0..6b875081 100644 --- a/sphinx/ext/graphviz.py +++ b/sphinx/ext/graphviz.py @@ -214,7 +214,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) -- cgit v1.2.1