diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-09-17 18:13:17 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-09-17 18:13:17 +0900 |
commit | cfddf17d350ea16e2dbea23f926ef2fc0b5e8372 (patch) | |
tree | 3a89107e7211074005321e70fb6a249b75cb0793 /sphinx/directives/code.py | |
parent | 98886d3e07f528364661f87b988f12d5150eb4f2 (diff) | |
download | sphinx-git-cfddf17d350ea16e2dbea23f926ef2fc0b5e8372.tar.gz |
Fix #2931: code-block directive with same :caption: causes warning of duplicate target
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r-- | sphinx/directives/code.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index a2738a30d..dd7976cf0 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -133,7 +133,6 @@ class CodeBlock(Directive): caption = self.options.get('caption') if caption: - self.options.setdefault('name', nodes.fully_normalize_name(caption)) try: literal = container_wrapper(self, literal, caption) except ValueError as exc: @@ -340,7 +339,6 @@ class LiteralInclude(Directive): if caption is not None: if not caption: caption = self.arguments[0] - self.options.setdefault('name', nodes.fully_normalize_name(caption)) try: retnode = container_wrapper(self, retnode, caption) except ValueError as exc: |