summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-09-21 10:25:22 +0200
committerGeorg Brandl <georg@python.org>2011-09-21 10:25:22 +0200
commit94f1aec9521d0c5be2503f8b32a342298182bfdd (patch)
tree74f4a5f07222635e2c6d0869e45e55ff778e9fe1
parentc8ea437096f26821111f0eb1b4dd797d3368db1d (diff)
downloadsphinx-94f1aec9521d0c5be2503f8b32a342298182bfdd.tar.gz
Fix #659: use object start/end tag.
-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 398c6bed..eedcf2b9 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 '<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)