diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2010-08-22 23:18:14 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-08-22 23:18:14 -0400 |
| commit | 32320cabc97ccca3f2492faa55b542c4a158c2c9 (patch) | |
| tree | 787b10a7e7c1f1ce4b24e13f68c8b0b85e48f5de /coverage/htmlfiles/index.html | |
| parent | 98ca1822da51c3c73201d04966656e605c21a6a5 (diff) | |
| download | python-coveragepy-32320cabc97ccca3f2492faa55b542c4a158c2c9.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.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html index c1ef8ad..bec2584 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> |
