From 841ef69f02e45d4b1028cd94664ddb10bfbae061 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Mon, 21 Jan 2019 16:25:07 +0100 Subject: [cover] Right-align number of hits in html output --- lib/tools/priv/styles.css | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/tools') diff --git a/lib/tools/priv/styles.css b/lib/tools/priv/styles.css index d4e3d79596..84f00be9fd 100644 --- a/lib/tools/priv/styles.css +++ b/lib/tools/priv/styles.css @@ -65,6 +65,7 @@ table td.hits { } table td.hits { width: 10px; + text-align: right; padding: 2px 5px; color: rgba(0, 0, 0, 0.6); background-color: #f0f0f0; -- cgit v1.2.3 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') 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