From 168f1e75b31b654b1ea17edd95027a7d1845e3b2 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 14 Oct 2019 08:13:12 -0400 Subject: Annotations and context labels have to co-exist --- coverage/htmlfiles/pyfile.html | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'coverage/htmlfiles/pyfile.html') diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index 85f79f18..01659dd8 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -74,23 +74,25 @@

{#-#} {{line.number}}{#-#} {{line.html}} {#-#} - {% if line.annotate -%} - {{line.annotate}}{#-#} - {{line.annotate_long}}{#-#} + {% if line.context_list -%} + {#-#} {% endif -%} - {% if line.contexts -%} - - {% if line.context_list -%} - - {% endif -%} - {#-#} - {% if line.context_list -%} - - {% for context in line.context_list -%} - {{context}}{#-#} - {% endfor -%} - {#-#} - {% endif -%} + {# Things that should float right in the line. -#} + {#-#} + {% if line.annotate -%} + {{line.annotate}}{#-#} + {{line.annotate_long}}{#-#} + {% endif -%} + {% if line.contexts -%} + {#-#} + {% endif -%} + {#-#} + {# Things that should appear below the line. -#} + {% if line.context_list -%} + {#-#} + {% for context in line.context_list -%} + {{context}}{#-#} + {% endfor -%} {#-#} {% endif -%}

-- cgit v1.2.1