diff --git a/lib/rcov/templates/detail.html.erb b/lib/rcov/templates/detail.html.erb index 77ba11c..c080671 100644 --- a/lib/rcov/templates/detail.html.erb +++ b/lib/rcov/templates/detail.html.erb @@ -39,9 +39,9 @@ - +

Key

- +
Code reported as executed by Ruby looks like this...and this: this line is also marked as covered.Lines considered as run by rcov, but not reported by Ruby, look like this,and this: these lines were inferred by rcov (using simple heuristics).Finally, here's a line marked as not executed.

Coverage Details

@@ -51,8 +51,9 @@ <% fileinfo.num_lines.times do |i| %> <% line = fileinfo.lines[i].chomp %> <% count = fileinfo.counts[i] %> + <% width = fileinfo.num_lines.to_s.length %> -
<%= i.next %> <%= CGI::escapeHTML(line) %>
+
<%= i.next.to_s.rjust(width) %> <%= CGI::escapeHTML(line) %>
<% end %>