diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs
index d0d9034f6e6..ece8f4905ec 100644
--- a/src/librustdoc/html/render/mod.rs
+++ b/src/librustdoc/html/render/mod.rs
@@ -1030,7 +1030,7 @@ fn render_attributes_in_pre(w: &mut Buffer, it: &clean::Item, prefix: &str) {
// a div to produce a newline after it.
fn render_attributes_in_code(w: &mut Buffer, it: &clean::Item) {
for a in attributes(it) {
- write!(w, "
{}
", a);
+ write!(w, "{}
", a);
}
}
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index 03c4bb837f5..fec97d3ea55 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -140,7 +140,7 @@ fn should_hide_fields(n_fields: usize) -> bool {
fn toggle_open(w: &mut Buffer, text: &str) {
write!(
w,
- "Show {}
",
+ "Show {}
",
text
);
}
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 64972bc2389..c84c045f75f 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -1756,20 +1756,20 @@ div.name.expand::before {
/* The hideme class is used on summary tags that contain a span with
placeholder text shown only when the toggle is closed. For instance,
"Expand description" or "Show methods". */
-details > summary.hideme {
+details.rustdoc-toggle > summary.hideme {
cursor: pointer;
}
-details > summary::-webkit-details-marker {
+details.rustdoc-toggle > summary::-webkit-details-marker {
display: none;
}
-details > summary.hideme > span {
+details.rustdoc-toggle > summary.hideme > span {
margin-left: 9px;
color: #999;
}
-details > summary::before {
+details.rustdoc-toggle > summary::before {
content: "[+]";
font-weight: 300;
font-size: 0.8em;
@@ -1777,11 +1777,11 @@ details > summary::before {
letter-spacing: 1px;
}
-details > summary.hideme::before {
+details.rustdoc-toggle > summary.hideme::before {
position: relative;
}
-details > summary:not(.hideme)::before {
+details.rustdoc-toggle > summary:not(.hideme)::before {
float: left;
}
@@ -1790,19 +1790,19 @@ details > summary:not(.hideme)::before {
affect the layout of the items to its right. To do that, we use
absolute positioning. Note that we also set position: relative
on the parent to make this work properly. */
-details[open] > summary.hideme {
+details.rustdoc-toggle[open] > summary.hideme {
position: absolute;
}
-details[open] {
+details.rustdoc-toggle[open] {
position: relative;
}
-details[open] > summary.hideme > span {
+details.rustdoc-toggle[open] > summary.hideme > span {
display: none;
}
-details[open] > summary::before {
+details.rustdoc-toggle[open] > summary::before {
content: "[−]";
display: inline;
}