diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-21 07:53:39 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-21 07:53:39 -0400 |
commit | 19ef69b1cb73c6364af2c536371cd9986f4b4499 (patch) | |
tree | b5f246bc669ee0e7fc648a1046148d2be1878c18 /coverage/html.py | |
parent | 5045415785cdf24c1ea88ec4b3051f32a15d04d8 (diff) | |
download | python-coveragepy-git-19ef69b1cb73c6364af2c536371cd9986f4b4499.tar.gz |
Clean up.
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/coverage/html.py b/coverage/html.py index b2329b50..85f5c9ac 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -1,7 +1,7 @@ """HTML reporting for coverage.py""" import os -from coverage import __version__ +from coverage import __version__ # pylint: disable-msg=W0611 from coverage.report import Reporter from coverage.templite import Templite @@ -44,7 +44,8 @@ class HtmlReporter(Reporter): } lines.append(lineinfo) - html_filename = os.path.join(self.directory, cu.flat_rootname()) + ".html" + html_filename = os.path.join(self.directory, cu.flat_rootname()) + html_filename += ".html" fhtml = open(html_filename, 'w') fhtml.write(self.source_tmpl.render(locals())) fhtml.close() @@ -67,6 +68,9 @@ def not_empty(t): # Templates +# For making line numbers and text different fonts: +# http://24ways.org/2006/compose-to-a-vertical-rhythm + SOURCE = """\ <!doctype html PUBLIC "-//W3C//DTD html 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> @@ -98,7 +102,7 @@ p { font-size: 85%; font-family: verdana, sans-serif; color: #666666; - font-variant: italic; + font-style: italic; } .content { |