diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-04-25 01:53:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-25 01:53:16 +0900 |
| commit | 5716bab1ab1303fcca857d4479fdfbcbb11d168b (patch) | |
| tree | 0893b9d9a457dc6dc2b03cdf92595cd4e4b6f7d8 | |
| parent | e25c5e2c25d8bc7f192d7eb5b1bf5882cad4f4ba (diff) | |
| parent | 9c30382fd0b15bf777054bcb41705764fbaf9be3 (diff) | |
| download | rust-5716bab1ab1303fcca857d4479fdfbcbb11d168b.tar.gz rust-5716bab1ab1303fcca857d4479fdfbcbb11d168b.zip | |
Rollup merge of #84518 - GuillaumeGomez:cleanup-up-dom-string, r=jsha
Clean up DOM strings Follow-up of #84320. r? ``@jsha``
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 3bf496f9d94..67ccf2137bf 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -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)) { |
