summaryrefslogtreecommitdiff
path: root/sphinx/directives/code.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r--sphinx/directives/code.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py
index d33462dc0..a872b9e47 100644
--- a/sphinx/directives/code.py
+++ b/sphinx/directives/code.py
@@ -67,7 +67,9 @@ def dedent_lines(
return new_lines
-def container_wrapper(directive: SphinxDirective, literal_node: Node, caption: str) -> nodes.container: # NOQA
+def container_wrapper(
+ directive: SphinxDirective, literal_node: Node, caption: str
+) -> nodes.container:
container_node = nodes.container('', literal_block=True,
classes=['literal-block-wrapper'])
parsed = nodes.Element()