Rollup merge of #130933 - lolbinarycat:rustdoc-li-p, r=GuillaumeGomez,notriddle

rustdoc: lists items that contain multiple paragraphs are more clear

fixes https://github.com/rust-lang/rust/issues/130622

before: ![before](https://github.com/user-attachments/assets/fe54d8ee-8a1a-45fc-9434-2737c5c6f4d5)

after:
![after](https://github.com/user-attachments/assets/095be365-1bfc-4001-8664-59bc4125bb05)
This commit is contained in:
Matthias Krüger 2024-10-01 21:09:20 +02:00 committed by GitHub
commit bd5ee830c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -960,6 +960,13 @@ pre, .rustdoc.src .example-wrap, .example-wrap .src-line-numbers {
display: inline-block; display: inline-block;
} }
.docblock li {
margin-bottom: .8em;
}
.docblock li p {
margin-bottom: .1em;
}
/* "where ..." clauses with block display are also smaller */ /* "where ..." clauses with block display are also smaller */
div.where { div.where {
white-space: pre-wrap; white-space: pre-wrap;