1. Ned Batchelder
  2. coverage.py
  3. Issues
Issue #55 resolved

Small patch for line links in HTML report

Jyrki Muukkonen
created an issue

Here's a small patch to make line numbers clickable links to themselves. Makes it easier to share links, pointing directly to lines. Using the already existing CSS class to make it look nice.

{{{ --- coverage-3.3.1/coverage/htmlfiles/pyfile.html 2010-03-14 11:49:36.000000000 +0200 +++ coverage-3.3.1-orig/coverage/htmlfiles/pyfile.html 2010-02-07 23:06:12.000000000 +0200 @@ -31,7 +31,7 @@ <tr> <td class='linenos' valign='top'> {% for line in lines %} - <p id='n{{line.number}}' class='{{line.class}}'><a class='nav' href='#n{{line.number}}'>{{line.number}}</a></p> + <p id='n{{line.number}}' class='{{line.class}}'>{{line.number}}</p> {% endfor %} </td> <td class='text' valign='top'>

}}}

Comments (2)

  1. Log in to comment