Skip to content

KeyError on 'literal_block' in new Latex transform #5064

@jakobandersen

Description

@jakobandersen

Subject: KeyError on literal_block in new Latex transform

Problem

The new Latex math transform added in 489d86d assumes all docutils.nodes.container has the literal_block attribute, but extensions (e.g., Breathe) add containers as well without that attribute. Is the visitor matching the right node type?

Procedure to reproduce the problem

sphinx-literal_block.zip
Run make latex.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions