summaryrefslogtreecommitdiff
path: root/coverage/htmlfiles/index.html
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-08-22 23:18:14 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-08-22 23:18:14 -0400
commit94bf5f731aa8addcedb162525e96c4e1bd2ebfdd (patch)
tree29eac92761293f63b4a5e27c91fcdbd3a4ca2113 /coverage/htmlfiles/index.html
parent3d4c985b248793c600e391fcbec0f835ca5e1e9d (diff)
downloadpython-coveragepy-git-94bf5f731aa8addcedb162525e96c4e1bd2ebfdd.tar.gz
Unify formatting of coverage percentages, and don't show zero or 100 as a result of rounding. Fixes #41 and #70.
Diffstat (limited to 'coverage/htmlfiles/index.html')
-rw-r--r--coverage/htmlfiles/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html
index c1ef8ad7..bec2584f 100644
--- a/coverage/htmlfiles/index.html
+++ b/coverage/htmlfiles/index.html
@@ -16,7 +16,7 @@
<div id='header'>
<div class='content'>
<h1>Coverage report:
- <span class='pc_cov'>{{totals.pc_covered|format_pct}}%</span>
+ <span class='pc_cov'>{{totals.pc_covered_str}}%</span>
</h1>
</div>
</div>
@@ -48,7 +48,7 @@
<td>{{totals.n_branches}}</td>
<td>{{totals.n_missing_branches}}</td>
{% endif %}
- <td class='right'>{{totals.pc_covered|format_pct}}%</td>
+ <td class='right'>{{totals.pc_covered_str}}%</td>
</tr>
</tfoot>
<tbody>
@@ -62,7 +62,7 @@
<td>{{file.nums.n_branches}}</td>
<td>{{file.nums.n_missing_branches}}</td>
{% endif %}
- <td class='right'>{{file.nums.pc_covered|format_pct}}%</td>
+ <td class='right'>{{file.nums.pc_covered_str}}%</td>
</tr>
{% endfor %}
</tbody>