Skip to content

Commit 7d21972

Browse files
authored
Wrap non-pre code blocks
Fix #83550 regression
1 parent 40334da commit 7d21972

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustdoc/html/static/rustdoc.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,9 @@ nav.sub {
424424
text-overflow: ellipsis;
425425
margin: 0;
426426
}
427-
.docblock-short code {
427+
/* Wrap non-pre code blocks (`text`) but not (```text```). */
428+
.docblock > :not(pre) > code,
429+
.docblock-short > :not(pre) > code {
428430
white-space: pre-wrap;
429431
}
430432

0 commit comments

Comments
 (0)