summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-09-26 09:33:46 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-09-26 09:33:46 -0400
commit69ef34577b7dd25fea1e65c5d1bb6d629f77d9bc (patch)
treef310f46cf9a4ec8da7583cae4a341044ef5472d7
parenta65ce0146e0fdbb1ea08a4e12e47f2a7c11427f5 (diff)
downloadpython-coveragepy-git-69ef34577b7dd25fea1e65c5d1bb6d629f77d9bc.tar.gz
Fix #197: more decimal places on a CSS fraction eliminates rounding errors in the HTML line numbers.
-rw-r--r--CHANGES.txt4
-rw-r--r--coverage/htmlfiles/style.css4
2 files changed, 6 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 79f404ce..5af3877d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -5,6 +5,9 @@ Change history for Coverage.py
Version 3.5.3b1
---------------
+- Line numbers in the HTML report line up better with the source lines, fixing
+ `issue 197`, thanks Marius Gedminas.
+
- When specifying a directory as the source= option, the directory itself no
longer needs to have a ``__init__.py`` file, though its subdirectories do, to
be considered as source files.
@@ -34,6 +37,7 @@ Version 3.5.3b1
.. _issue 183: https://bitbucket.org/ned/coveragepy/issue/183/install-fails-for-python-23
.. _issue 194: https://bitbucket.org/ned/coveragepy/issue/194/filelocatorrelative_filename-could-mangle
.. _issue 195: https://bitbucket.org/ned/coveragepy/issue/195/pyo-file-handling-in-codeunit
+.. _issue 197: https://bitbucket.org/ned/coveragepy/issue/197/line-numbers-in-html-report-do-not-align
.. _tox: http://tox.readthedocs.org/
diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css
index 70715ac1..811c6401 100644
--- a/coverage/htmlfiles/style.css
+++ b/coverage/htmlfiles/style.css
@@ -24,8 +24,8 @@ html>body {
/* Set base font size to 12/16 */
p {
- font-size: .75em; /* 12/16 */
- line-height: 1.3333em; /* 16/12 */
+ font-size: .75em; /* 12/16 */
+ line-height: 1.33333333em; /* 16/12 */
}
table {