mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #3023 from jfbu/fixpysiglineissue
Fix an issue with ``\pysigline`` in LaTeX style file.
This commit is contained in:
commit
940fa11b9b
@ -546,12 +546,12 @@
|
||||
\newlength{\py@argswidth}
|
||||
\newcommand{\py@sigparams}[2]{%
|
||||
\parbox[t]{\py@argswidth}{#1\sphinxcode{)}#2}}
|
||||
\newcommand{\pysigline}[1]{\item[#1]\nopagebreak}
|
||||
\newcommand{\pysigline}[1]{\item[{#1}]\nopagebreak}
|
||||
\newcommand{\pysiglinewithargsret}[3]{%
|
||||
\settowidth{\py@argswidth}{#1\sphinxcode{(}}%
|
||||
\addtolength{\py@argswidth}{-2\py@argswidth}%
|
||||
\addtolength{\py@argswidth}{\linewidth}%
|
||||
\item[#1\sphinxcode{(}\py@sigparams{#2}{#3}]}
|
||||
\item[{#1\sphinxcode{(}\py@sigparams{#2}{#3}}]}
|
||||
|
||||
% Production lists
|
||||
%
|
||||
@ -774,7 +774,7 @@
|
||||
%
|
||||
\newenvironment{definitions}{%
|
||||
\begin{description}%
|
||||
\def\term##1{\item[##1]\mbox{}\\*[0mm]}
|
||||
\def\term##1{\item[{##1}]\mbox{}\\*[0mm]}
|
||||
}{%
|
||||
\end{description}%
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user