mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Wrap toggle_open()
This commit is contained in:
@@ -139,7 +139,10 @@ fn should_hide_fields(n_fields: usize) -> bool {
|
||||
fn toggle_open(w: &mut Buffer, text: &str) {
|
||||
write!(
|
||||
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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user