Rollup merge of #84518 - GuillaumeGomez:cleanup-up-dom-string, r=jsha

Clean up DOM strings

Follow-up of #84320.

r? ``@jsha``
This commit is contained in:
Yuki Okushi 2021-04-25 01:53:16 +09:00 committed by GitHub
commit 5716bab1ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>");
@ -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)
@ -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)) {