Skip to content

Commit

Permalink
Merge pull request #8865 from brechtm/pr/fix_transforms
Browse files Browse the repository at this point in the history
[bugfix] SubstitutionDefinitionsRemove: only run for LaTeX builder
  • Loading branch information
tk0miya committed Feb 10, 2021
2 parents e4ba80f + ebc3c68 commit 52e9048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/builders/latex/transforms.py
Expand Up @@ -44,7 +44,7 @@ class SubstitutionDefinitionsRemover(SphinxPostTransform):
default_priority = Substitutions.default_priority + 1
builders = ('latex',)

def apply(self, **kwargs: Any) -> None:
def run(self, **kwargs: Any) -> None:
for node in self.document.traverse(nodes.substitution_definition):
node.parent.remove(node)

Expand Down

0 comments on commit 52e9048

Please sign in to comment.