Skip to content

Commit

Permalink
Auto merge of #95568 - GuillaumeGomez:fix-invalid-dom-generation, r=n…
Browse files Browse the repository at this point in the history
…otriddle

Fix invalid DOM generation

Fixes #64371.

r? `@notriddle`
  • Loading branch information
bors committed Apr 2, 2022
2 parents fbc45b6 + 6f3d988 commit b6a34f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/render/print_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
w.write_str(";\n");

if pos < required.len() - 1 {
w.write_str("<div class=\"item-spacer\"></div>");
w.write_str("<span class=\"item-spacer\"></span>");
}
}
if !required.is_empty() && !provided.is_empty() {
Expand All @@ -641,7 +641,7 @@ fn item_trait(w: &mut Buffer, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
}
}
if pos < provided.len() - 1 {
w.write_str("<div class=\"item-spacer\"></div>");
w.write_str("<span class=\"item-spacer\"></span>");
}
}
if toggle {
Expand Down

0 comments on commit b6a34f3

Please sign in to comment.