- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LaTeX: excessive whitespace since v4.4.0 #10158
Comments
It indeed looks excessive, but note that the layout is tuned for when you have documentation of the entities, e.g., .. cpp:class:: Data
A class that models either this or that.
.. cpp:union:: @data
A nested union storing the data different in this and that.
.. cpp:var:: int a
If it models a this, then this member is valid.
.. cpp:var:: double b
If it models a that, then this member is valid. @jfbu may be able to provide at bit more details in what is going on with the whitespace and may be doable. |
Fixed at 6768577 |
Hi. I've applied the fix locally and it indeed improves the spacing issues but does not completely bring spacing back to the pre-v4.4.0 state. Here's a comparison of v4.4.0, current HEAD (b8789b4) and the revert of b230365 (left-to-right): Nevertheless, this is good enough for me, so thanks for the fix. |
Thanks for the feedback and nice visual diff! Yes indeed the merge of #10087 is not a revert of b230365, and deliberately injects some more spacing for better grouping, see #10087 (comment). Although there is no way to reproduce exactly former behaviour (which had quite a few issues, and the LaTeX code has been changed significantly), it might be that adding this to conf.py
will mimick close enough. The default setting |
Describe the bug
Hi,
I'm using Sphinx together with Breathe and Doxygen to generate LaTeX -> PDF documentation.
Since v4.4.0 I've noticed that undocumented variables/structure members have large amount of whitespace added below them.
Bisecting shows that this is caused by b230365 (#9941).
HEAD (799385f):


With revert:
How to Reproduce
Input RST:
MWE.zip
Expected behavior
No response
Your project
Screenshots
No response
OS
Linux
Python version
3.10.2
Sphinx version
v4.4.0
Sphinx extensions
No response
Extra tools
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: