summaryrefslogtreecommitdiff
path: root/coverage/htmlfiles
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-08 20:47:11 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-08 20:47:11 -0500
commite3a3e43d743ff442c818d41bfe4f33176bf7646c (patch)
tree66ca89985de935124f71c4d46f65f7a9ea1c5b86 /coverage/htmlfiles
parent8cb63e1209a3fc2c677b736373a1d69f6dfd50ba (diff)
downloadpython-coveragepy-e3a3e43d743ff442c818d41bfe4f33176bf7646c.tar.gz
Annotations on yellow HTML lines with the line numbers not visited.
Diffstat (limited to 'coverage/htmlfiles')
-rw-r--r--coverage/htmlfiles/pyfile.html2
-rw-r--r--coverage/htmlfiles/style.css11
2 files changed, 12 insertions, 1 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html
index 8ae27ea..ca65152 100644
--- a/coverage/htmlfiles/pyfile.html
+++ b/coverage/htmlfiles/pyfile.html
@@ -47,7 +47,7 @@ function toggle_lines(btn, cls) {
</td>
<td class='text' valign='top'>
{% for line in lines %}
- <p class='{{line.class}}'>{{line.html}}<span class="strut">&nbsp;</span></p>
+ <p class='{{line.class}}'>{% if line.annotate %}<span class='annotate'>{{line.annotate}}</span>{% endif %}{{line.html}}<span class='strut'>&nbsp;</span></p>
{% endfor %}
</td>
</tr>
diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css
index 7c2ae79..65a2790 100644
--- a/coverage/htmlfiles/style.css
+++ b/coverage/htmlfiles/style.css
@@ -133,6 +133,17 @@ td.text {
background: inherit;
}
+.text span.annotate {
+ font-family: georgia;
+ font-style: italic;
+ color: #666;
+ float: right;
+ padding-right: .5em;
+ }
+.text p.hide span.annotate {
+ display: none;
+ }
+
/* Syntax coloring */
.text .com {
color: green;