mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #5064: KeyError on literal_block in new Latex transform
This commit is contained in:
parent
eccee5ea29
commit
c330c0f582
@ -578,7 +578,7 @@ class LiteralBlockTransform(SphinxTransform):
|
||||
return
|
||||
|
||||
for node in self.document.traverse(nodes.container):
|
||||
if node['literal_block'] is True:
|
||||
if node.get('literal_block') is True:
|
||||
newnode = captioned_literal_block('', *node.children, **node.attributes)
|
||||
node.replace_self(newnode)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user