Commits

Takayuki Shimizukawa committed ba21252

figure-caption work-around set int or None to node.line instead of empty string.

  • Participants
  • Parent commits 5d0d96c

Comments (0)

Files changed (1)

sphinx/util/nodes.py

         # https://sourceforge.net/tracker/?func=detail&aid=3599485&group_id=38414&atid=422032
         if isinstance(node, nodes.caption) and not node.source:
             node.source = node.parent.source
-            node.line = ''  #need fix docutils to get `node.line`
+            node.line = 0  #need fix docutils to get `node.line`
 
         if not node.source:
             continue # built-in message