mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix NameError in graphviz.render_dot_texinfo.
This commit is contained in:
parent
a78b9ec927
commit
d16be40da1
@ -308,7 +308,8 @@ def render_dot_texinfo(self, node, code, options, prefix='graphviz'):
|
||||
raise nodes.SkipNode
|
||||
if fname is not None:
|
||||
self.body.append('\n\n@float\n')
|
||||
if node.get('caption'):
|
||||
caption = node.get('caption')
|
||||
if caption:
|
||||
self.body.append('@caption{%s}\n' % self.escape_arg(caption))
|
||||
self.body.append('@image{%s,,,[graphviz],png}\n'
|
||||
'@end float\n\n' % fname[:-4])
|
||||
|
Loading…
Reference in New Issue
Block a user