Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML report indents incorrectly for one-space indents #472

Closed
nedbat opened this issue Jan 31, 2016 · 1 comment
Closed

HTML report indents incorrectly for one-space indents #472

nedbat opened this issue Jan 31, 2016 · 1 comment
Labels
bug Something isn't working html

Comments

@nedbat
Copy link
Owner

nedbat commented Jan 31, 2016

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.


@nedbat
Copy link
Owner Author

nedbat commented Feb 2, 2016

Use whitespace:pre to avoid having to convert spaces in the HTML report. Fixes #472.

→ <<cset 26c2380a6c16 (bb)>>

@nedbat nedbat closed this as completed Feb 2, 2016
@nedbat nedbat added minor bug Something isn't working html labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working html
Projects
None yet
Development

No branches or pull requests

1 participant