1
Fork 0

Fix missing blank space issue

This commit is contained in:
Guillaume Gomez 2017-01-14 23:05:30 +01:00
parent 93e70ecb7f
commit b7678808af
2 changed files with 5 additions and 3 deletions

View file

@ -1888,11 +1888,13 @@ fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Vec<S
if stab.unstable_reason.is_empty() { if stab.unstable_reason.is_empty() {
stability.push(format!("<div class='stab unstable'>\ stability.push(format!("<div class='stab unstable'>\
<span class=microscope>🔬</span> \ <span class=microscope>🔬</span> \
This is a nightly-only experimental API. {}</div>", This is a nightly-only experimental API. &nbsp;{}\
</div>",
unstable_extra)); unstable_extra));
} else { } else {
let text = format!("<summary><span class=microscope>🔬</span> \ let text = format!("<summary><span class=microscope>🔬</span> \
This is a nightly-only experimental API. {}</summary>{}", This is a nightly-only experimental API. &nbsp;{}\
</summary>{}",
unstable_extra, MarkdownHtml(&stab.unstable_reason)); unstable_extra, MarkdownHtml(&stab.unstable_reason));
stability.push(format!("<div class='stab unstable'><details>{}</details></div>", stability.push(format!("<div class='stab unstable'><details>{}</details></div>",
text)); text));

View file

@ -21,7 +21,7 @@
// @has - '<code>test</code>' // @has - '<code>test</code>'
// @has - '<a href="http://issue_url/32374">#32374</a>' // @has - '<a href="http://issue_url/32374">#32374</a>'
// @matches issue_32374/struct.T.html '//*[@class="stab unstable"]' \ // @matches issue_32374/struct.T.html '//*[@class="stab unstable"]' \
// '🔬 This is a nightly-only experimental API. \(test #32374\)$' // '🔬 This is a nightly-only experimental API. \(test #32374\)$'
#[rustc_deprecated(since = "1.0.0", reason = "text")] #[rustc_deprecated(since = "1.0.0", reason = "text")]
#[unstable(feature = "test", issue = "32374")] #[unstable(feature = "test", issue = "32374")]
pub struct T; pub struct T;