mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-08-26 05:07:35 -05:00
Let LaTeX writer support the standard role "acronym". (#14202)
This commit is contained in:
@@ -60,6 +60,7 @@ Contributors
|
||||
* Florian Best -- log improvements
|
||||
* Glenn Matthews -- python domain signature improvements
|
||||
* Gregory Szorc -- performance improvements
|
||||
* Günter Milde -- various small fixes
|
||||
* Henrique Bastos -- SVG support for graphviz extension
|
||||
* Hernan Grecco -- search improvements
|
||||
* Hong Xu -- svg support in imgmath extension and various bug fixes
|
||||
|
||||
@@ -33,6 +33,10 @@ Bugs fixed
|
||||
Patch by Adam Turner
|
||||
* Remove incorrect static typing assertions.
|
||||
Patch by Adam Turner
|
||||
* #14050: LaTeXTranslator fails to build documents using the "acronym"
|
||||
standard role.
|
||||
Patch (PR #14202) by Günter Milde
|
||||
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
@@ -2108,6 +2108,12 @@ class LaTeXTranslator(SphinxTranslator):
|
||||
def depart_abbreviation(self, node: Element) -> None:
|
||||
self.body.append(self.context.pop())
|
||||
|
||||
def visit_acronym(self, node: Element) -> None:
|
||||
self.visit_abbreviation(node)
|
||||
|
||||
def depart_acronym(self, node: Element) -> None:
|
||||
self.depart_abbreviation(node)
|
||||
|
||||
def visit_manpage(self, node: Element) -> None:
|
||||
return self.visit_literal_emphasis(node)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user