Skip to content

Commit 93cdce4

Browse files
committed
rustdoc: don't collapse docblock-short
1 parent 3781956 commit 93cdce4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/librustdoc/html/render.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
18341834
<tr class='{stab} module-item'>
18351835
<td><a class='{class}' href='{href}'
18361836
title='{title}'>{name}</a></td>
1837-
<td class='docblock short'>
1837+
<td class='docblock-short'>
18381838
{stab_docs} {docs}
18391839
</td>
18401840
</tr>",

src/librustdoc/html/static/rustdoc.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -239,23 +239,23 @@ nav.sub {
239239
}
240240
.line-numbers span { cursor: pointer; }
241241

242-
.docblock.short p {
242+
.docblock-short p {
243243
display: inline;
244244
}
245245

246-
.docblock.short.nowrap {
246+
.docblock-short.nowrap {
247247
display: block;
248248
overflow: hidden;
249249
white-space: nowrap;
250250
text-overflow: ellipsis;
251251
}
252252

253-
.docblock.short p {
253+
.docblock-short p {
254254
overflow: hidden;
255255
text-overflow: ellipsis;
256256
margin: 0;
257257
}
258-
.docblock.short code { white-space: nowrap; }
258+
.docblock-short code { white-space: nowrap; }
259259

260260
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
261261
border-bottom: 1px solid;

src/test/rustdoc/issue-32374.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#![unstable(feature="test", issue = "32374")]
1515

16-
// @has issue_32374/index.html '//*[@class="docblock short"]' \
16+
// @has issue_32374/index.html '//*[@class="docblock-short"]' \
1717
// '[Deprecated] [Unstable]'
1818

1919
// @has issue_32374/struct.T.html '//*[@class="stab deprecated"]' \

0 commit comments

Comments
 (0)