Fix #3664 relative to `\labelsep` setting in LaTeX fulllineitems

This also removes re-definition of description environment which is not
needed anymore as ``\labelsep`` is not modified.
This commit is contained in:
jfbu 2017-04-25 10:14:53 +02:00
parent 7897678777
commit 7c2f5f16eb
2 changed files with 8 additions and 14 deletions

View File

@ -15,6 +15,7 @@ Bugs fixed
* #3614: Sphinx crashes with requests-2.5.0 * #3614: Sphinx crashes with requests-2.5.0
* #3618: autodoc crashes with tupled arguments * #3618: autodoc crashes with tupled arguments
* #3664: No space after the bullet in items of a latex list produced by Sphinx
Testing Testing
-------- --------

View File

@ -6,7 +6,7 @@
% %
\NeedsTeXFormat{LaTeX2e}[1995/12/01] \NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{sphinx}[2017/03/26 v1.5.4 LaTeX package (Sphinx markup)] \ProvidesPackage{sphinx}[2017/04/25 v1.5.6 LaTeX package (Sphinx markup)]
% this is the \ltx@ifundefined of ltxcmds.sty, which is loaded by % this is the \ltx@ifundefined of ltxcmds.sty, which is loaded by
% kvoptions (and later by hyperref), but the first release of % kvoptions (and later by hyperref), but the first release of
@ -1164,26 +1164,19 @@
% {fulllineitems} is the main environment for object descriptions. % {fulllineitems} is the main environment for object descriptions.
% %
\newcommand{\py@itemnewline}[1]{% \newcommand{\py@itemnewline}[1]{%
\kern\labelsep
\@tempdima\linewidth \@tempdima\linewidth
\advance\@tempdima \leftmargin\makebox[\@tempdima][l]{#1}% \advance\@tempdima \labelwidth\makebox[\@tempdima][l]{#1}%
\kern-\labelsep
} }
\newenvironment{fulllineitems}{ \newenvironment{fulllineitems}{%
\begin{list}{}{\labelwidth \leftmargin \labelsep \z@ \begin{list}{}{\labelwidth \leftmargin
\rightmargin \z@ \topsep -\parskip \partopsep \parskip \rightmargin \z@ \topsep -\parskip \partopsep \parskip
\itemsep -\parsep \itemsep -\parsep
\let\makelabel=\py@itemnewline} \let\makelabel=\py@itemnewline}%
}{\end{list}} }{\end{list}}
% Redefine description environment so that it is usable inside fulllineitems.
%
% FIXME: use sphinxdescription, do not redefine description environment!
\renewcommand{\description}{%
\list{}{\labelwidth\z@
\itemindent-\leftmargin
\labelsep5pt\relax
\let\makelabel=\descriptionlabel}}
% Signatures, possibly multi-line % Signatures, possibly multi-line
% %
\newlength{\py@argswidth} \newlength{\py@argswidth}