summaryrefslogtreecommitdiff
path: root/coverage/htmlfiles/pyfile.html
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-10-12 09:10:27 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-10-13 12:11:49 -0400
commitbcbdf41c6bb9d4ee30842bd14d45c7d48c2c6d01 (patch)
tree01cf04961fde2a3325e654ebd46a347d6ccccda3 /coverage/htmlfiles/pyfile.html
parentf1505afb5212b8291dffe607e6cdfa565fceb359 (diff)
downloadpython-coveragepy-git-bcbdf41c6bb9d4ee30842bd14d45c7d48c2c6d01.tar.gz
Source code without tables
Diffstat (limited to 'coverage/htmlfiles/pyfile.html')
-rw-r--r--coverage/htmlfiles/pyfile.html59
1 files changed, 20 insertions, 39 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html
index d4a86ff3..2154c06c 100644
--- a/coverage/htmlfiles/pyfile.html
+++ b/coverage/htmlfiles/pyfile.html
@@ -68,45 +68,26 @@
</div>
<div id="source">
- <table>
- <tr>
- <td class="linenos">
-{% for line in lines -%}
- <p id="n{{line.number}}" class="{{line.css_class}}"><a href="#n{{line.number}}">{{line.number}}</a></p>
-{% endfor %}
- </td>
- <td class="text">
-{# These are the source lines, which are very sensitive to whitespace. -#}
-{# The `{ # - # }` below are comments which slurp up the following space. -#}
-{% for line in lines -%}
- <p id="t{{line.number}}" class="{{line.css_class}}">{#-#}
- {% if line.annotate -%}
- <span class="annotate short">{{line.annotate}}</span>{#-#}
- <span class="annotate long">{{line.annotate_long}}</span>{#-#}
- {% endif -%}
- {{line.html}}<span class="strut">&nbsp;</span>{#-#}
- </p>
-{% endfor %}
- </td>
- {% if show_contexts -%}
- <td class="contexts">
- {% for line in lines -%}
- <p>{#-#}
- {% if line.contexts -%}
- <span class="context-button">{{ line.contexts|len }} ctx</span>{#-#}
- <span class="context-list">
- {% for context in line.contexts -%}
- <span class="context-line">{{context}}</span>{#-#}
- {% endfor -%}
- </span>{#-#}
- {% endif -%}
- &nbsp;
- </p>{#-#}
- {% endfor %}
- </td>
- {% endif %}
- </tr>
- </table>
+ {# These are the source lines, which are very sensitive to whitespace. -#}
+ {# The `{ # - # }` below are comments which slurp up the following space. -#}
+ {% for line in lines -%}
+ <p id="t{{line.number}}" class="{{line.css_class}}">{#-#}
+ <span class="n"><a href="#t{{line.number}}">{{line.number}}</a></span>{#-#}
+ <span class="t">{{line.html}}&nbsp;</span>{#-#}
+ {% if line.annotate -%}
+ <span class="annotate short">{{line.annotate}}</span>{#-#}
+ <span class="annotate long">{{line.annotate_long}}</span>{#-#}
+ {% endif -%}
+ {% if line.contexts -%}
+ <span class="context-button">{{ line.contexts|len }} ctx</span>{#-#}
+ <span class="context-list">
+ {% for context in line.contexts -%}
+ <span class="context-line">{{context}}</span>{#-#}
+ {% endfor -%}
+ </span>{#-#}
+ {% endif -%}
+ </p>
+ {% endfor %}
</div>
<div id="footer">