Skip to content

Commit

Permalink
Fix invalid DOM generation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 1, 2022
1 parent 0677edc commit 6f3d988
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 6f3d988

Please sign in to comment.