Commits

Jon Waltman  committed 9ee4af8

Fix NameError in graphviz.render_dot_texinfo.

  • Participants
  • Parent commits 1ba40fb

Comments (0)

Files changed (1)

File sphinx/ext/graphviz.py

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