mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
remove old patch for docutils. it's fixed at docutils-0.10
http://repo.or.cz/w/docutils.git?a=commit;h=e3cc3cef7c1120d46ed9ef317583d08a51a452cc
This commit is contained in:
@@ -39,17 +39,6 @@ def apply_source_workaround(node):
|
||||
if node.source and node.rawsource:
|
||||
return
|
||||
|
||||
# workaround: nodes.term doesn't have source, line and rawsource
|
||||
# (fixed in Docutils r7495)
|
||||
if isinstance(node, nodes.term):
|
||||
definition_list_item = node.parent
|
||||
if definition_list_item.line is not None:
|
||||
node.source = definition_list_item.source
|
||||
node.line = definition_list_item.line - 1
|
||||
node.rawsource = definition_list_item. \
|
||||
rawsource.split("\n", 2)[0]
|
||||
return
|
||||
|
||||
# workaround: docutils-0.10.0 or older's nodes.caption for nodes.figure
|
||||
# and nodes.title for nodes.admonition doesn't have source, line.
|
||||
# this issue was filed to Docutils tracker:
|
||||
|
||||
Reference in New Issue
Block a user