summaryrefslogtreecommitdiff
path: root/coverage/htmlfiles
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-21 09:28:36 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-21 09:28:36 -0500
commit3a2ecf8f99da14b16445f59194da680b4eb2c270 (patch)
treed62296ceb5bb5aedce0852da59c80ffe1a3df70e /coverage/htmlfiles
parent3ce4ef98bc60cd0c0a6517e4fc10eb794806c8c8 (diff)
downloadpython-coveragepy-3a2ecf8f99da14b16445f59194da680b4eb2c270.tar.gz
Turns out <tfoot> is supposed to come before <tbody>. HTML validates again.
Diffstat (limited to 'coverage/htmlfiles')
-rw-r--r--coverage/htmlfiles/index.html27
1 files changed, 14 insertions, 13 deletions
diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html
index 5c562de..faef93b 100644
--- a/coverage/htmlfiles/index.html
+++ b/coverage/htmlfiles/index.html
@@ -33,6 +33,20 @@
<th class='right'>coverage</th>
</tr>
</thead>
+ {# HTML syntax requires thead, tfoot, tbody #}
+ <tfoot>
+ <tr class='total'>
+ <td class='name left'>Total</td>
+ <td>{{totals.n_statements}}</td>
+ <td>{{totals.n_executed}}</td>
+ <td>{{totals.n_excluded}}</td>
+ {% if arcs %}
+ <td>{{totals.n_branches}}</td>
+ <td>{{totals.n_executed_branches}}</td>
+ {% endif %}
+ <td class='right'>{{totals.pc_covered|format_pct}}%</td>
+ </tr>
+ </tfoot>
<tbody>
{% for file in files %}
<tr class='file'>
@@ -48,19 +62,6 @@
</tr>
{% endfor %}
</tbody>
- <tfoot>
- <tr class='total'>
- <td class='name left'>Total</td>
- <td>{{totals.n_statements}}</td>
- <td>{{totals.n_executed}}</td>
- <td>{{totals.n_excluded}}</td>
- {% if arcs %}
- <td>{{totals.n_branches}}</td>
- <td>{{totals.n_executed_branches}}</td>
- {% endif %}
- <td class='right'>{{totals.pc_covered|format_pct}}%</td>
- </tr>
- </tfoot>
</table>
</div>