diff options
Diffstat (limited to 'sphinx')
-rw-r--r-- | sphinx/writers/latex.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 6e7f5021b..113e28390 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -1977,7 +1977,8 @@ class LaTeXTranslator(SphinxTranslator): # mainly, %, #, {, } and \ need escaping via a \ escape # in \href, the tilde is allowed and must be represented literally return self.encode(text).replace('\\textasciitilde{}', '~').\ - replace('\\sphinxhyphen{}', '-') + replace('\\sphinxhyphen{}', '-').\ + replace('\\textquotesingle{}', "'") def visit_Text(self, node: Text) -> None: text = self.encode(node.astext()) |