From c219ffce64618a3b49f7ea23257999d315224e51 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 15 Jan 2017 15:10:35 -0500 Subject: [PATCH] tweak style of branch coverage tables --- assets/file_report.html.erb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/assets/file_report.html.erb b/assets/file_report.html.erb index d064c5c..b68f58b 100644 --- a/assets/file_report.html.erb +++ b/assets/file_report.html.erb @@ -20,6 +20,9 @@ h2 { } #code_table th, #code_table td { margin: 0px; + padding: 0px; +} +#code_table .padded { padding: 0px 0.5ex; } #code_table th { @@ -101,7 +104,7 @@ table th, table td { <% if branches = file_coverage.get_branches(line_number) %> - +
<% branches.each do |branch_id, branch_coverage| %> <% if branch_coverage[:taken_count] > 0 %> <% branch_coverage_style = "covered" %> @@ -110,19 +113,19 @@ table th, table td { <% end %> <% end %>
- <%= branch_coverage[:taken_count] %> <% if branch_coverage[:branch_info] %> (<%= branch_coverage[:branch_info] %>) <% end %> + <%= branch_coverage[:taken_count] %>
<% end %> - <%= line_execution_count %> - <%= line_number %> - <%= CGI.escape_html(line.chomp).gsub("\t", " " * 4).gsub(" ", " ") %> + <%= line_execution_count %> + <%= line_number %> + <%= CGI.escape_html(line.chomp).gsub("\t", " " * 4).gsub(" ", " ") %> <% end %>