mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix longest_label should be escaped
This commit is contained in:
parent
c1b87ff0d3
commit
34b6bea6a8
@ -2139,7 +2139,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
|||||||
# adjust max width of citation labels not to break the layout
|
# adjust max width of citation labels not to break the layout
|
||||||
longest_label = longest_label[:MAX_CITATION_LABEL_LENGTH]
|
longest_label = longest_label[:MAX_CITATION_LABEL_LENGTH]
|
||||||
|
|
||||||
self.body.append(u'\n\\begin{sphinxthebibliography}{%s}\n' % longest_label)
|
self.body.append(u'\n\\begin{sphinxthebibliography}{%s}\n' %
|
||||||
|
self.encode(longest_label))
|
||||||
|
|
||||||
def depart_thebibliography(self, node):
|
def depart_thebibliography(self, node):
|
||||||
# type: (nodes.Node) -> None
|
# type: (nodes.Node) -> None
|
||||||
|
Loading…
Reference in New Issue
Block a user