From e3a3e43d743ff442c818d41bfe4f33176bf7646c Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 8 Nov 2009 20:47:11 -0500 Subject: Annotations on yellow HTML lines with the line numbers not visited. --- coverage/htmlfiles/pyfile.html | 2 +- coverage/htmlfiles/style.css | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'coverage/htmlfiles') 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) { {% for line in lines %} -

{{line.html}} 

+

{% if line.annotate %}{{line.annotate}}{% endif %}{{line.html}} 

{% endfor %} 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; -- cgit v1.2.1