From 4d6d8ae3691202c2da77e2d846ea2d09b21e29d8 Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Sun, 15 Jan 2017 11:50:16 +0900 Subject: [PATCH] node.source and node.line attributes are set for figure caption and nodes.title since docutils-0.11. --- sphinx/util/nodes.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py index ee4d0d223..8e1737d74 100644 --- a/sphinx/util/nodes.py +++ b/sphinx/util/nodes.py @@ -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