Skip to content

Commit

Permalink
skip "other languages" bar item when there is no other
Browse files Browse the repository at this point in the history
  • Loading branch information
aslilac committed May 25, 2024
1 parent f3cce9f commit 210e086
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/reporters/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ impl HtmlReporter {
);
}

println!(
"\t<div aria-hidden style=\"background-color: gray; flex-grow: {}\"></div>",
remaining_lines,
);
if remaining_lines > 0 {
println!(
"\t<div aria-hidden title=\"Other languages\" style=\"background-color: gray; flex-grow: {}\"></div>",
remaining_lines,
);
}
}
print!("</div>\n\n");

Expand Down

0 comments on commit 210e086

Please sign in to comment.