mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
Rollup merge of #83645 - pickfire:patch-3, r=GuillaumeGomez
Wrap non-pre code blocks Fix #83550 regression ``` $ cargo new --lib whitespace && cd whitespace && echo '//! `" foo "`' > src/lib.rs && cargo doc --open ``` Before  After  r? ``@GuillaumeGomez`` cc ``@mgeisler``
This commit is contained in:
@@ -424,7 +424,9 @@ nav.sub {
|
||||
text-overflow: ellipsis;
|
||||
margin: 0;
|
||||
}
|
||||
.docblock-short code {
|
||||
/* Wrap non-pre code blocks (`text`) but not (```text```). */
|
||||
.docblock > :not(pre) > code,
|
||||
.docblock-short > :not(pre) > code {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user