Commits

Ned Batchelder committed ea9090e

Add a numbered id to the line parts, for future use. Put the percentage in the title of file reports.

Comments (0)

Files changed (1)

coverage/htmlfiles/pyfile.html

 <html>
 <head>
 <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
-<title>Coverage for {{cu.name|escape}}</title>
+<title>Coverage for {{cu.name|escape}}: {{nums.pc_covered|format_pct}}%</title>
 <link rel='stylesheet' href='style.css' type='text/css'>
 <script type='text/javascript' src='jquery-1.3.2.min.js'></script>
 <script type='text/javascript'>
 <tr>
 <td class='linenos' valign='top'>
     {% for line in lines %}
-    <p class='{{line.class}}'>{{line.number}}</p>
+    <p id='n{{line.number}}' class='{{line.class}}'>{{line.number}}</p>
     {% endfor %}
 </td>
 <td class='text' valign='top'>
     {% for line in lines %}
-    <p class='{{line.class}}'>{% if line.annotate %}<span class='annotate' title='{{line.annotate_title}}'>{{line.annotate}}</span>{% endif %}{{line.html}}<span class='strut'>&nbsp;</span></p>
+    <p id='t{{line.number}}' class='{{line.class}}'>{% if line.annotate %}<span class='annotate' title='{{line.annotate_title}}'>{{line.annotate}}</span>{% endif %}{{line.html}}<span class='strut'>&nbsp;</span></p>
     {% endfor %}
 </td>
 </tr>