-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Milestone
Description
Describe the bug
Multi-line signatures have a comma separator even for the last parameter when outputting HTML5 (edit: and LaTeX and Text).
The offender seems to be writers/html5.py#L232
if opt_param_left_at_level or is_required and (is_last_group or next_is_required):which I think should be
if opt_param_left_at_level or is_required and (not is_last_group or next_is_required):Edit: Nm, that would break the closing dd
How to Reproduce
.. cpp:function:: Foo(int bar, float baz)with maximum_signature_line_length = 1
outputs
Foo(
int bar,
float baz,
)
Environment Information
Sphinx 8.0.2
Sphinx extensions
No response
Additional context
No response