From 651cee0d92222cc0850bb1bd4d5f130d1cf8228a Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 20 Apr 2009 19:25:17 -0400 Subject: Adjust the colors; make the fonts the same so I don't have to struggle with CSS right now; prevent wrapping so long lines won't ruin the lineup of the numbers. --- coverage/html.py | 46 ++++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/coverage/html.py b/coverage/html.py index f0a9447..f7e8604 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -28,18 +28,18 @@ class HtmlReporter(Reporter): css_class = "" if lineno in statements: - css_class += " s" + css_class += " stm" if lineno not in missing and lineno not in excluded: - css_class += " r" + css_class += " run" if lineno in excluded: - css_class += " x" + css_class += " exc" if lineno in missing: - css_class += " m" + css_class += " mis" lineinfo = { 'text': line, 'number': lineno, - 'class': css_class.strip() or "p" + 'class': css_class.strip() or "pln" } lines.append(lineinfo) @@ -49,7 +49,6 @@ class HtmlReporter(Reporter): fhtml.close() - # Helpers for templates def escape(t): @@ -68,47 +67,46 @@ def not_empty(t): # Templates SOURCE = """\ + Coverage of {{cu.filename|escape}} -- cgit v1.2.1