Commits

Takeshi Komiya committed 491d8c4

* Fix :desctable: option is not worked

  • Participants
  • Parent commits 9b9e8f5
  • Tags blockdiag-0.8.2

Comments (0)

Files changed (1)

File blockdiag/sphinxcontrib/blockdiag.py

         # generate description table
         descriptions = []
         if 'desctable' in options:
-            for n in image.screen.nodes:
-                if n.description:
+            for n in image.diagram.traverse_nodes():
+                if hasattr(n, 'description') and n.description:
                     descriptions.append((n.id, n.numbered, n.description))
 
         # generate thumbnails