Skip to content

Commit 69ef345

Browse files
committed
Fix #197: more decimal places on a CSS fraction eliminates rounding errors in the HTML line numbers.
1 parent a65ce01 commit 69ef345

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Change history for Coverage.py
55
Version 3.5.3b1
66
---------------
77

8+
- Line numbers in the HTML report line up better with the source lines, fixing
9+
`issue 197`, thanks Marius Gedminas.
10+
811
- When specifying a directory as the source= option, the directory itself no
912
longer needs to have a ``__init__.py`` file, though its subdirectories do, to
1013
be considered as source files.
@@ -34,6 +37,7 @@ Version 3.5.3b1
3437
.. _issue 183: https://bitbucket.org/ned/coveragepy/issue/183/install-fails-for-python-23
3538
.. _issue 194: https://bitbucket.org/ned/coveragepy/issue/194/filelocatorrelative_filename-could-mangle
3639
.. _issue 195: https://bitbucket.org/ned/coveragepy/issue/195/pyo-file-handling-in-codeunit
40+
.. _issue 197: https://bitbucket.org/ned/coveragepy/issue/197/line-numbers-in-html-report-do-not-align
3741
.. _tox: http://tox.readthedocs.org/
3842

3943

coverage/htmlfiles/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ html>body {
2424

2525
/* Set base font size to 12/16 */
2626
p {
27-
font-size: .75em; /* 12/16 */
28-
line-height: 1.3333em; /* 16/12 */
27+
font-size: .75em; /* 12/16 */
28+
line-height: 1.33333333em; /* 16/12 */
2929
}
3030

3131
table {

0 commit comments

Comments
 (0)