Inconsistent spacing between constants in rustdoc #105868
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I'm not sure if this is a bug or intended behavior, but it seems like the spacing between constants is off if the constant defines a code block.
You can see this in the stdlib documentation on various types, like here on the type
i32
:In 1.65, it looked like this (link):

I can also reproduce this locally: if I run
cargo doc --open
on this code:This happens:
The constant
BAZ
has less padding than the other constants.Meta
The text was updated successfully, but these errors were encountered: