Wrap toggle_open()
This commit is contained in:
parent
b40bd5a9aa
commit
97cd30d337
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue