Skip to content
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: extra vertical whitespace for some nested declarations #9944

Closed
jfbu opened this issue Dec 5, 2021 · 0 comments
Closed

LaTeX: extra vertical whitespace for some nested declarations #9944

jfbu opened this issue Dec 5, 2021 · 0 comments

Comments

@jfbu
Copy link
Contributor

jfbu commented Dec 5, 2021

Describe the bug

Extra vertical whitespace in pdf output:

Capture d’écran 2021-12-05 à 21 43 47

How to Reproduce

            -msse
            -msse2

   .. note::

      A note in the option description

.. c:function:: PyObject *PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)

   .. note::

      Extra vertical space also in this case if note is first item

.. cpp:class:: Data

   .. cpp:union:: @data

      .. cpp:var:: int a

      .. cpp:var:: double b

Explicit ref: :cpp:var:Data::@data::a. Short-hand ref: :cpp:var:Data::a.

Additional context

Relates #9926

(I edited this as the output from the new issue template is not very useful, and input was a bit painful too)

@jfbu jfbu added this to the 4.3.2 milestone Dec 5, 2021
jfbu added a commit to jfbu/sphinx that referenced this issue Dec 5, 2021
The "~" was added 14 years ago at 3761223

Seems not to be needed anymore and causes extra vertical space in some
circumstances.
t
@jfbu jfbu modified the milestones: 4.3.2, 4.4.0 Dec 9, 2021
@jfbu jfbu closed this as completed in e1b2936 Dec 9, 2021
jfbu added a commit that referenced this issue Dec 9, 2021
Fix #9944 (LaTeX writer visit_desc_content())
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant