fix python error in latex.py from commit 528b6c3

This commit is contained in:
jfbu
2016-11-03 20:03:53 +01:00
parent 7a6f2ae894
commit f2b63b473b

View File

@@ -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'])