diff options
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: |