summaryrefslogtreecommitdiff
path: root/sphinx/transforms.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-02-13 01:18:39 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-02-14 14:49:20 +0900
commit9273140ee257fd754ff036198cd506cd07fb4e4a (patch)
tree08fb543cffaaf6a6663c9e77c238ff22173c6220 /sphinx/transforms.py
parentb07f4ccf10e2a7b9ffa5d9a0f166c6fd216c6189 (diff)
downloadsphinx-git-9273140ee257fd754ff036198cd506cd07fb4e4a.tar.gz
Override figure directive to apply :name: option to the figure itself
Diffstat (limited to 'sphinx/transforms.py')
-rw-r--r--sphinx/transforms.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/sphinx/transforms.py b/sphinx/transforms.py
index f8b0bf984..430ba3d94 100644
--- a/sphinx/transforms.py
+++ b/sphinx/transforms.py
@@ -120,9 +120,6 @@ class AutoNumbering(Transform):
if isinstance(node, nodes.figure):
if has_child(node, nodes.caption):
self.document.note_implicit_target(node)
- elif isinstance(node, nodes.image):
- if node.parent and has_child(node.parent, nodes.caption):
- self.document.note_implicit_target(node.parent)
elif isinstance(node, nodes.table):
if has_child(node, nodes.title):
self.document.note_implicit_target(node)