diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-11-11 13:08:43 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-11-11 13:09:59 -0500 |
commit | 694435b844760ca0443cf87bf73a537f06c37d7d (patch) | |
tree | d566b186426ed17872463250b1e67632e1f28490 /coverage/htmlfiles | |
parent | 99f8007f4210b3117c0bfc963ad6873e9b263408 (diff) | |
download | python-coveragepy-git-694435b844760ca0443cf87bf73a537f06c37d7d.tar.gz |
Templite {% joined %} is more convenient than trailing hyphens
Diffstat (limited to 'coverage/htmlfiles')
-rw-r--r-- | coverage/htmlfiles/pyfile.html | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index 01659dd8..eb0f99c8 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -68,34 +68,34 @@ </div> <div id="source"> - {# 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}} </span>{#-#} - {% if line.context_list -%} - <input type="checkbox" id="ctxs{{line.number}}" />{#-#} - {% endif -%} - {# Things that should float right in the line. -#} - <span class="r">{#-#} - {% if line.annotate -%} - <span class="annotate short">{{line.annotate}}</span>{#-#} - <span class="annotate long">{{line.annotate_long}}</span>{#-#} - {% endif -%} - {% if line.contexts -%} - <label for="ctxs{{line.number}}" class="ctx">{{ line.contexts_label }}</label>{#-#} - {% endif -%} - </span>{#-#} - {# Things that should appear below the line. -#} - {% if line.context_list -%} - <span class="ctxs">{#-#} - {% for context in line.context_list -%} - <span>{{context}}</span>{#-#} - {% endfor -%} - </span>{#-#} - {% endif -%} + {% joined %} + <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}} </span> + {% if line.context_list %} + <input type="checkbox" id="ctxs{{line.number}}" /> + {% endif %} + {# Things that should float right in the line. #} + <span class="r"> + {% if line.annotate %} + <span class="annotate short">{{line.annotate}}</span> + <span class="annotate long">{{line.annotate_long}}</span> + {% endif %} + {% if line.contexts %} + <label for="ctxs{{line.number}}" class="ctx">{{ line.contexts_label }}</label> + {% endif %} + </span> + {# Things that should appear below the line. #} + {% if line.context_list %} + <span class="ctxs"> + {% for context in line.context_list %} + <span>{{context}}</span> + {% endfor %} + </span> + {% endif %} </p> + {% endjoined %} {% endfor %} </div> |