node.source and node.line attributes are set for figure caption and nodes.title since docutils-0.11.

This commit is contained in:
shimizukawa 2017-01-15 11:50:16 +09:00
parent c41aed5d07
commit 4d6d8ae369

View File

@ -64,8 +64,6 @@ def apply_source_workaround(node):
# workaround: some docutils nodes doesn't have source, line. # workaround: some docutils nodes doesn't have source, line.
if (isinstance(node, ( if (isinstance(node, (
nodes.caption, # figure caption: sf.net/p/docutils/patches/100/ fixed@du11
nodes.title, # admonition title: sf.net/p/docutils/patches/108/ fixed@du11
nodes.rubric, # #1305 rubric directive nodes.rubric, # #1305 rubric directive
nodes.line, # #1477 line node nodes.line, # #1477 line node
nodes.image, # #3093 image directive in substitution nodes.image, # #3093 image directive in substitution