Wrap toggle_open()

This commit is contained in:
Manish Goregaokar 2021-04-12 12:27:37 -07:00
parent b40bd5a9aa
commit 97cd30d337

View file

@ -139,7 +139,10 @@ fn should_hide_fields(n_fields: usize) -> bool {
fn toggle_open(w: &mut Buffer, text: &str) { fn toggle_open(w: &mut Buffer, text: &str) {
write!( write!(
w, w,
"<details class=\"rustdoc-toggle type-contents-toggle\"><summary class=\"hideme\"><span>Show {}</span></summary>", "<details class=\"rustdoc-toggle type-contents-toggle\">\
<summary class=\"hideme\">\
<span>Show {}</span>\
</summary>",
text text
); );
} }