summaryrefslogtreecommitdiff
path: root/coverage/htmlfiles/pyfile.html
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/htmlfiles/pyfile.html')
-rw-r--r--coverage/htmlfiles/pyfile.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html
index 8fcfc660..1921e1c2 100644
--- a/coverage/htmlfiles/pyfile.html
+++ b/coverage/htmlfiles/pyfile.html
@@ -11,6 +11,13 @@
{% if extra_css %}
<link rel="stylesheet" href="{{ extra_css }}" type="text/css">
{% endif %}
+
+ {% if contexts_json %}
+ <script type="text/javascript">
+ contexts = {{ contexts_json }}
+ </script>
+ {% endif %}
+
<script type="text/javascript" src="coverage_html.js" defer></script>
</head>
<body class="pyfile">
@@ -117,11 +124,9 @@
{% endif %}
</span>
{# Things that should appear below the line. #}
- {% if line.context_list %}
+ {% if line.context_str %}
<span class="ctxs">
- {% for context in line.context_list %}
- <span>{{context}}</span>
- {% endfor %}
+ {{ line.context_str }}
</span>
{% endif %}
</p>