diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-09-17 18:28:55 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-09-17 18:28:55 +0900 |
| commit | 82c153ffd2965fd56f1e51fd4b960014c5e4621b (patch) | |
| tree | 365f4936696d92e3f9f1e644afacf095a2473dd7 /sphinx/directives/code.py | |
| parent | 669b5f1736541245edda2d341fb3e39f6bb31923 (diff) | |
| download | sphinx-git-82c153ffd2965fd56f1e51fd4b960014c5e4621b.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 8edfd61d7..35439ae39 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: @@ -344,7 +343,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: |
