]> git.lizzy.rs Git - rust.git/commit
rustdoc: use a newline instead of `<br>` to format code headers
authorMichael Howell <michael@notriddle.com>
Tue, 7 Feb 2023 18:23:25 +0000 (11:23 -0700)
committerMichael Howell <michael@notriddle.com>
Tue, 7 Feb 2023 18:23:25 +0000 (11:23 -0700)
commit8307fd7901c9832e7b22ee5139efe6f7f2d291b3
tree71172e88833836c4f1897082c8f3d5b75b80df11
parent5dd0e1b7ae7bcddce28658487602e8a077737a3e
rustdoc: use a newline instead of `<br>` to format code headers

Since these elements now use `white-space: pre-wrap` since
784665d4ce59c5239791f1f96fa2137e47ca1817, it's fine to use newlines
for formatting, which is smaller and a bit less complicated.
15 files changed:
src/librustdoc/html/format.rs
tests/rustdoc/async-fn.rs
tests/rustdoc/const-generics/const-generics-docs.rs
tests/rustdoc/decl-trailing-whitespace.declaration.html
tests/rustdoc/generic-associated-types/gats.rs
tests/rustdoc/inline_cross/impl_trait.rs
tests/rustdoc/issue-34928.rs
tests/rustdoc/reexports-priv.rs
tests/rustdoc/where.SWhere_Simd_item-decl.html
tests/rustdoc/where.SWhere_TraitWhere_item-decl.html
tests/rustdoc/where.rs
tests/rustdoc/whitespace-after-where-clause.enum.html
tests/rustdoc/whitespace-after-where-clause.struct.html
tests/rustdoc/whitespace-after-where-clause.trait.html
tests/rustdoc/whitespace-after-where-clause.union.html