nkvoll  committed f554126

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

Issue #659:

  • Participants
  • Parent commits e4e1973

Comments (0)

Files changed (1)

File sphinx/ext/

     # 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)