rustdoc: don't collapse docblock-short

This commit is contained in:
Liigo 2016-09-06 15:59:16 +08:00
parent 378195665c
commit 93cdce4cf3
3 changed files with 6 additions and 6 deletions

View File

@ -1834,7 +1834,7 @@ fn item_module(w: &mut fmt::Formatter, cx: &Context,
<tr class='{stab} module-item'>
<td><a class='{class}' href='{href}'
title='{title}'>{name}</a></td>
<td class='docblock short'>
<td class='docblock-short'>
{stab_docs} {docs}
</td>
</tr>",

View File

@ -239,23 +239,23 @@ nav.sub {
}
.line-numbers span { cursor: pointer; }
.docblock.short p {
.docblock-short p {
display: inline;
}
.docblock.short.nowrap {
.docblock-short.nowrap {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.docblock.short p {
.docblock-short p {
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
}
.docblock.short code { white-space: nowrap; }
.docblock-short code { white-space: nowrap; }
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
border-bottom: 1px solid;

View File

@ -13,7 +13,7 @@
#![unstable(feature="test", issue = "32374")]
// @has issue_32374/index.html '//*[@class="docblock short"]' \
// @has issue_32374/index.html '//*[@class="docblock-short"]' \
// '[Deprecated] [Unstable]'
// @has issue_32374/struct.T.html '//*[@class="stab deprecated"]' \