Skip to content

Commit 7520f6d

Browse files
authored
Rollup merge of rust-lang#65613 - Mark-Simulacrum:rustdoc-preserve-ws, r=GuillaumeGomez
Preserve whitespace inside one-backtick codeblocks Previously this was only done inside short docblocks (e.g., summary lines), but we should also do so in general. Fixes rust-lang#65555
2 parents 582a4ea + bc3ed32 commit 7520f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/rustdoc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ nav.sub {
376376
text-overflow: ellipsis;
377377
margin: 0;
378378
}
379-
.docblock-short code {
379+
.docblock code, .docblock-short code {
380380
white-space: pre-wrap;
381381
}
382382

0 commit comments

Comments
 (0)