mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
7897678777
commit
7c2f5f16eb
1
CHANGES
1
CHANGES
@ -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
|
||||||
--------
|
--------
|
||||||
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user