Skip to content

Commit

Permalink
Rollup merge of rust-lang#84518 - GuillaumeGomez:cleanup-up-dom-strin…
Browse files Browse the repository at this point in the history
…g, r=jsha

Clean up DOM strings

Follow-up of rust-lang#84320.

r? `@jsha`
  • Loading branch information
JohnTitor committed Apr 24, 2021
2 parents 1923a2f + 9c30382 commit 604286f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/librustdoc/html/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,10 @@ fn render_impl(
if let Some(use_absolute) = use_absolute {
write!(
w,
"<details class=\"rustdoc-toggle implementors-toggle\"><summary><h3 id=\"{}\" class=\"impl\"{}><code class=\"in-band\">",
"<details class=\"rustdoc-toggle implementors-toggle\">\
<summary>\
<h3 id=\"{}\" class=\"impl\"{}>\
<code class=\"in-band\">",
id, aliases
);
close_tags.insert_str(0, "</details>");
Expand All @@ -1331,7 +1334,10 @@ fn render_impl(
} else {
write!(
w,
"<details class=\"rustdoc-toggle implementors-toggle\"><summary><h3 id=\"{}\" class=\"impl\"{}><code class=\"in-band\">{}</code>",
"<details class=\"rustdoc-toggle implementors-toggle\">\
<summary>\
<h3 id=\"{}\" class=\"impl\"{}>\
<code class=\"in-band\">{}</code>",
id,
aliases,
i.inner_impl().print(false, cx)
Expand All @@ -1347,8 +1353,7 @@ fn render_impl(
outer_const_version,
);
write_srclink(cx, &i.impl_item, w);
w.write_str("</h3>");
w.write_str("</summary>");
w.write_str("</h3></summary>");

if trait_.is_some() {
if let Some(portability) = portability(&i.impl_item, Some(parent)) {
Expand Down

0 comments on commit 604286f

Please sign in to comment.