Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 210e086

Browse files
committed
skip "other languages" bar item when there is no other
1 parent f3cce9f commit 210e086

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/reporters/html.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ impl HtmlReporter {
5252
);
5353
}
5454

55-
println!(
56-
"\t<div aria-hidden style=\"background-color: gray; flex-grow: {}\"></div>",
57-
remaining_lines,
58-
);
55+
if remaining_lines > 0 {
56+
println!(
57+
"\t<div aria-hidden title=\"Other languages\" style=\"background-color: gray; flex-grow: {}\"></div>",
58+
remaining_lines,
59+
);
60+
}
5961
}
6062
print!("</div>\n\n");
6163

0 commit comments

Comments
 (0)