diff options
| author | Ivan Tham <pickfire@riseup.net> | 2021-03-29 21:49:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-29 21:49:58 +0800 |
| commit | 7d21972579011cf97d9d439699efae6244219835 (patch) | |
| tree | cd7deae9f45ec991d6f7a025a5a26a815af2f65e | |
| parent | 40334da7a6cc0602aa16252cf8f78dc0beb48159 (diff) | |
| download | rust-7d21972579011cf97d9d439699efae6244219835.tar.gz rust-7d21972579011cf97d9d439699efae6244219835.zip | |
Wrap non-pre code blocks
Fix #83550 regression
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 6c90fd7c9ee..f5a034a0d24 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -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; } |
