summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNjal Karevoll <njal@karevoll.no>2011-08-12 09:15:02 +0200
committerNjal Karevoll <njal@karevoll.no>2011-08-12 09:15:02 +0200
commit4af5dc9ece54d0311b951c94543d8ff8b2d648f7 (patch)
tree03c7f65ed2285f542350a9d2249a583dec3852f4
parentcc5748c12f8e92f132328070a598c06f563f5977 (diff)
downloadsphinx-4af5dc9ece54d0311b951c94543d8ff8b2d648f7.tar.gz
The graphviz extension uses an empty <object ... /> 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
-rw-r--r--sphinx/ext/graphviz.py2
1 files changed, 1 insertions, 1 deletions
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 '<object type="image/svg+xml" data="%s"%s%s/>\n' % \
+ return '<object type="image/svg+xml" data="%s"%s%s></object>\n' % \
(svgref, imgcss, style)