HTML report indents incorrectly for one-space indents

Issue #472 resolved
Ned Batchelder
repo owner created an issue

Make a file like this:

try:
 a = 1
except:
 b = 2

Run it under coverage, and produce an HTML report. The source will look like:

try:
a = 1
except:
b = 2

The HTML has:

<p id="t2" class="stm run hide_run"> <span class="nam">a</span> <span class="op">=</span> <span class="num">1</span><span class="strut">&nbsp;</span></p>

and the leading space is being ignored by the browser.

Comments (2)

  1. Log in to comment