mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
node.source and node.line attributes are set for figure caption and nodes.title since docutils-0.11.
This commit is contained in:
parent
c41aed5d07
commit
4d6d8ae369
@ -64,8 +64,6 @@ def apply_source_workaround(node):
|
||||
|
||||
# workaround: some docutils nodes doesn't have source, line.
|
||||
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.line, # #1477 line node
|
||||
nodes.image, # #3093 image directive in substitution
|
||||
|
Loading…
Reference in New Issue
Block a user