Skip to content

Commit

Permalink
Wrap non-pre code blocks
Browse files Browse the repository at this point in the history
Fix #83550 regression
  • Loading branch information
pickfire committed Mar 29, 2021
1 parent 40334da commit 7d21972
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustdoc/html/static/rustdoc.css
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7d21972

Please sign in to comment.