diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-02-13 01:18:39 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-02-14 14:49:20 +0900 |
commit | 9273140ee257fd754ff036198cd506cd07fb4e4a (patch) | |
tree | 08fb543cffaaf6a6663c9e77c238ff22173c6220 /sphinx/transforms.py | |
parent | b07f4ccf10e2a7b9ffa5d9a0f166c6fd216c6189 (diff) | |
download | sphinx-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.py | 3 |
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) |