Fix NameError in graphviz.render_dot_texinfo.

This commit is contained in:
Jonathan Waltman 2011-06-30 17:21:16 -05:00
parent a78b9ec927
commit d16be40da1

View File

@ -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])