diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-21 09:28:36 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-21 09:28:36 -0500 |
commit | e6166788f145553276b7f3196df319eaaac6b57d (patch) | |
tree | 29eff6de11bb20cb91bf395c47f7c7d00a35c096 /coverage/htmlfiles | |
parent | 1319d28abb4e059083c7bbf896d9412c74c4d351 (diff) | |
download | python-coveragepy-git-e6166788f145553276b7f3196df319eaaac6b57d.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.html | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html index 5c562de2..faef93b6 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>
|