From 434a32d1c84e01acdea434eafdbbd4b494fb79e7 Mon Sep 17 00:00:00 2001 From: jfbu Date: Tue, 28 Feb 2017 10:00:41 +0100 Subject: [PATCH] Remove unneeded ``{}`` in LaTeX transition code --- doc/config.rst | 4 +++- sphinx/writers/latex.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/config.rst b/doc/config.rst index 00e154b61..844106617 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -1879,10 +1879,12 @@ These options influence LaTeX output. See further :doc:`latex`. modifying it also such as "tocloft" or "etoc". ``'transition'`` Commands used to display transitions, default - ``'\n\n\\bigskip\\hrule{}\\bigskip\n\n'``. Override if you want to + ``'\n\n\\bigskip\\hrule\\bigskip\n\n'``. Override if you want to display transitions differently. .. versionadded:: 1.2 + .. versionchanged:: 1.6 + Remove unneeded ``{}`` after ``\\hrule``. ``'printindex'`` "printindex" call, the last thing in the file, default ``'\\printindex'``. Override if you want to generate the index diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 94384ad68..82483b3e1 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -91,7 +91,7 @@ DEFAULT_SETTINGS = { 'tableofcontents': '\\sphinxtableofcontents', 'atendofbody': '', 'printindex': '\\printindex', - 'transition': '\n\n\\bigskip\\hrule{}\\bigskip\n\n', + 'transition': '\n\n\\bigskip\\hrule\\bigskip\n\n', 'figure_align': 'htbp', 'tocdepth': '', 'secnumdepth': '',