Skip to content

Multi-line .. function:: directive has big vertical spacing in Latexpdf #9924

@marxin

Description

@marxin

Describe the bug

.. function:: _Decimal32 __dpd_addsd3 (_Decimal32 a, _Decimal32 b)
              _Decimal32 __bid_addsd3 (_Decimal32 a, _Decimal32 b)
              _Decimal64 __dpd_adddd3 (_Decimal64 a, _Decimal64 b)
              _Decimal64 __bid_adddd3 (_Decimal64 a, _Decimal64 b)
              _Decimal128 __dpd_addtd3 (_Decimal128 a, _Decimal128 b)
              _Decimal128 __bid_addtd3 (_Decimal128 a, _Decimal128 b)

Is wrongly rendered in Latexpdf:
Screenshot from 2021-12-02 10-46-47

While it correctly works for .. option directive:

.. option:: -mmmx
            -msse
            -msse2

Screenshot from 2021-12-02 10-47-03

How to Reproduce

make latexpdf for the provided snippet

Expected behavior

No response

Your project

snippet provided

Screenshots

No response

OS

Linux

Python version

3.8

Sphinx version

4.3.0

Sphinx extensions

No response

Extra tools

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions