From c18bb73c75b1eea6e8986893edc3b7a066fcf365 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Mon, 21 Jan 2019 16:26:38 +0100 Subject: [cover] Make uncovered lines searchable in html output Prior to PR#1807, uncovered lines could be found by searching for " 0.." in the HTML page generated by cover:analyse_to_file/1,2. The pull request removed the two dots after the number of hits, which makes it much harder to find the uncovered lines. This commit introduces a sad face, :-( , instead of the single 0 character, which should make the search easier. --- lib/tools/src/cover.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/tools/src') diff --git a/lib/tools/src/cover.erl b/lib/tools/src/cover.erl index 4f3707d2ed..8d4561ca9e 100644 --- a/lib/tools/src/cover.erl +++ b/lib/tools/src/cover.erl @@ -2569,6 +2569,7 @@ table_data(Line, L, N) -> "",maybe_integer_to_list(N),"\n", "",LineNoNL,"\n\n"]. +maybe_integer_to_list(0) -> "
:-(
"; maybe_integer_to_list(N) when is_integer(N) -> integer_to_list(N); maybe_integer_to_list(_) -> "". -- cgit v1.2.3