mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 08:25:01 -05:00
Fix LaTeX: :confval:release is not escaped (refs: #3362)
This commit is contained in:
1 parent
1a2488610d
commit
952161de4e
2 files changed
+4
-3
No files matched your search
@@ -14,6 +14,7 @@ Bugs fixed
|
||||
----------
|
||||
|
||||
* #3370: the caption of code-block is not picked up for translation
|
||||
* LaTeX: :confval:`release` is not escaped (refs: #3362)
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
||||
@@ -384,9 +384,9 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
self.elements.update({
|
||||
'wrapperclass': self.format_docclass(document.settings.docclass),
|
||||
# if empty, the title is set to the first section title
|
||||
'title': document.settings.title,
|
||||
'release': builder.config.release,
|
||||
'author': document.settings.author,
|
||||
'title': document.settings.title, # treat as a raw LaTeX code
|
||||
'release': self.encode(builder.config.release),
|
||||
'author': document.settings.author, # treat as a raw LaTeX code
|
||||
'releasename': _('Release'),
|
||||
'indexname': _('Index'),
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user