From c06b21725d021902960a3eafb0f339aa0dd8862a Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Thu, 7 Jul 2016 22:22:01 +0900 Subject: [PATCH] Fix invalid variable name was used --- sphinx/builders/latex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinx/builders/latex.py b/sphinx/builders/latex.py index 3bd1ebc06..d3b9d97a8 100644 --- a/sphinx/builders/latex.py +++ b/sphinx/builders/latex.py @@ -50,8 +50,8 @@ class LaTeXBuilder(Builder): def check_options(self): if self.config.latex_toplevel_sectioning not in (None, 'part', 'chapter', 'section'): self.warn('invalid latex_toplevel_sectioning, ignored: %s' % - self.config.latex_top_sectionlevel) - self.config.latex_top_sectionlevel = None + self.config.latex_toplevel_sectioning) + self.config.latex_toplevel_sectioning = None if self.config.latex_use_parts: warnings.warn('latex_use_parts will be removed at Sphinx-1.5. '