This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
librustdoc/html/static/css Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -585,8 +585,8 @@ ul.block, .block li {
585
585
text-overflow : ellipsis;
586
586
}
587
587
/* Wrap non-pre code blocks (`text`) but not (```text```). */
588
- .docblock > : not (pre ) > code ,
589
- .docblock-short > code {
588
+ .docblock : not (pre ) > code ,
589
+ .docblock-short code {
590
590
white-space : pre-wrap;
591
591
}
592
592
Original file line number Diff line number Diff line change @@ -7,3 +7,7 @@ show-text: true // We need to enable text draw to be able to have the "real" siz
7
7
// Little explanations for this test: if the text wasn't displayed on two lines, it would take
8
8
// around 20px (which is the font size).
9
9
assert-property: (".docblock p > code", {"offsetHeight": "44"})
10
+
11
+ // Same check, but where the long code block is also a link
12
+ goto: "file://" + |DOC_PATH| + "/test_docs/long_code_block_link/index.html"
13
+ assert-property: (".docblock p > a > code", {"offsetHeight": "44"})
Original file line number Diff line number Diff line change @@ -154,6 +154,11 @@ pub mod huge_amount_of_consts {
154
154
/// Very long code text `hereIgoWithLongTextBecauseWhyNotAndWhyWouldntI`.
155
155
pub mod long_code_block { }
156
156
157
+ /// Very long code text [`hereIgoWithLongTextBecauseWhyNotAndWhyWouldntI`][lnk].
158
+ ///
159
+ /// [lnk]: crate::long_code_block_link
160
+ pub mod long_code_block_link { }
161
+
157
162
#[ macro_export]
158
163
macro_rules! repro {
159
164
( ) => { } ;
You can’t perform that action at this time.
0 commit comments