diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-04-24 14:44:43 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-04-24 14:44:43 +0200 |
| commit | 9c30382fd0b15bf777054bcb41705764fbaf9be3 (patch) | |
| tree | 76553f2903af2668b5bf36d979ad9e89b3832be9 | |
| parent | e11a9fa52a3f372dadd6db3d3f2ed7dc2621dcc4 (diff) | |
| download | rust-9c30382fd0b15bf777054bcb41705764fbaf9be3.tar.gz rust-9c30382fd0b15bf777054bcb41705764fbaf9be3.zip | |
Clean up DOM strings
| -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 f6d6b34f8be..492f5cd8551 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)) { |
