Skip to content

Commit

Permalink
Auto merge of #39069 - GuillaumeGomez:missing_blank_space, r=Manishearth
Browse files Browse the repository at this point in the history
Fix missing blank space issue

r? @Manishearth
  • Loading branch information
bors committed Jan 16, 2017
2 parents 3dcb288 + b767880 commit daf4c06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1888,11 +1888,13 @@ fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Vec<S
if stab.unstable_reason.is_empty() {
stability.push(format!("<div class='stab unstable'>\
<span class=microscope>🔬</span> \
This is a nightly-only experimental API. {}</div>",
This is a nightly-only experimental API. &nbsp;{}\
</div>",
unstable_extra));
} else {
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));
stability.push(format!("<div class='stab unstable'><details>{}</details></div>",
text));
Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc/issue-32374.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// @has - '<code>test</code>'
// @has - '<a href="http://issue_url/32374">#32374</a>'
// @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")]
#[unstable(feature = "test", issue = "32374")]
pub struct T;
Expand Down

0 comments on commit daf4c06

Please sign in to comment.