Skip to content

Commit 97cd30d

Browse files
committed
Wrap toggle_open()
1 parent b40bd5a commit 97cd30d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustdoc/html/render/print_item.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ fn should_hide_fields(n_fields: usize) -> bool {
139139
fn toggle_open(w: &mut Buffer, text: &str) {
140140
write!(
141141
w,
142-
"<details class=\"rustdoc-toggle type-contents-toggle\"><summary class=\"hideme\"><span>Show {}</span></summary>",
142+
"<details class=\"rustdoc-toggle type-contents-toggle\">\
143+
<summary class=\"hideme\">\
144+
<span>Show {}</span>\
145+
</summary>",
143146
text
144147
);
145148
}

0 commit comments

Comments
 (0)