From 18bb74274597a39f693ba4fdc6fcf53c047da479 Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Sat, 25 Jul 2015 17:18:34 +0200 Subject: [PATCH] remove old patch for docutils. it's fixed at docutils-0.10 http://repo.or.cz/w/docutils.git?a=commit;h=e3cc3cef7c1120d46ed9ef317583d08a51a452cc --- sphinx/util/nodes.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py index 5112bec29..83269399b 100644 --- a/sphinx/util/nodes.py +++ b/sphinx/util/nodes.py @@ -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: