LaTeX: legacy \pysiglinewithargsret
does not compute correctly available horizontal space and should use a ragged right style
#8995
Labels
Milestone
Describe the bug
A clear and concise description of what the bug is.
Here is a screenshot from PDF rendering of Sphinx docs:
This is taken from the section documenting the APIs to the autodoc extension.
We observe:
Tuple
but there seems to be space availableThis is explained from the latex code which has a wrong computation of avaiable horizontal space; and the parbox should use
\raggedright
. This is will reduce hyphenation of keywords also.Environment info
Additional context
Add any other context about the problem here.
\parbox
as indicated in No wrapping for cpp:enumerator #7241 (comment), and this has the correct computation of available width which is wrong in\pysiglinewithargsret
currently.With some fixes the above screenshot would look like this
It does not go all the way to right end (which would match
docu-
) as it is know that\raggedright
makes hyphenation very unlikely, but this is a good thing, not to hyphenate too easily in signature, I think.The text was updated successfully, but these errors were encountered: