aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-12-06 13:17:25 +0100
committerLoïc Hoguin <[email protected]>2019-01-11 16:12:31 +0100
commit2eaf5f8014ced0ea5cff65782646fe209bf8dc2f (patch)
treed041f8b1e4f3b099120a8969af21a4623898df6f /lib/tools/src
parent73e4f5f21bbf492ab61c01dee48fa09fd7309a50 (diff)
downloadotp-2eaf5f8014ced0ea5cff65782646fe209bf8dc2f.tar.gz
otp-2eaf5f8014ced0ea5cff65782646fe209bf8dc2f.tar.bz2
otp-2eaf5f8014ced0ea5cff65782646fe209bf8dc2f.zip
Add a link on the line number in cover output
This will make it easier to send links to other people.
Diffstat (limited to 'lib/tools/src')
-rw-r--r--lib/tools/src/cover.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tools/src/cover.erl b/lib/tools/src/cover.erl
index d7269e3f27..4f3707d2ed 100644
--- a/lib/tools/src/cover.erl
+++ b/lib/tools/src/cover.erl
@@ -2563,8 +2563,9 @@ table_row(Line, L) ->
table_data(Line, L, N) ->
LineNoNL = Line -- "\n",
["<td class=\"line\" id=\"L",integer_to_list(L),"\">",
+ "<a href=\"#L",integer_to_list(L),"\">",
integer_to_list(L),
- "</td>\n",
+ "</a></td>\n",
"<td class=\"hits\">",maybe_integer_to_list(N),"</td>\n",
"<td class=\"source\"><code>",LineNoNL,"</code></td>\n</tr>\n"].