mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix python error in latex.py from commit 528b6c3
This commit is contained in:
@@ -444,9 +444,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
self.check_latex_elements()
|
||||
self.elements.update(builder.config.latex_elements)
|
||||
if self.elements['maxlistdepth']:
|
||||
self.elements['sphinxpkgoptions'] = \
|
||||
','.join(self.elements['sphinxpkgoptions'], 'maxlistdepth=%s' %
|
||||
self.elements['maxlistdepth'])
|
||||
self.elements['sphinxpkgoptions'] += (',maxlistdepth=%s' %
|
||||
self.elements['maxlistdepth'])
|
||||
if self.elements['sphinxpkgoptions']:
|
||||
self.elements['sphinxpkgoptions'] = ('[%s]' %
|
||||
self.elements['sphinxpkgoptions'])
|
||||
|
||||
Reference in New Issue
Block a user