diff options
-rw-r--r-- | coverage/html.py | 1 | ||||
-rw-r--r-- | coverage/htmlfiles/pyfile.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/coverage/html.py b/coverage/html.py index 61edcb5d..203169b5 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -101,6 +101,7 @@ class HtmlReporter(Reporter): 'escape': escape, 'pair': pair, 'title': title, + 'len': len, '__url__': coverage.__url__, '__version__': coverage.__version__, } diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index 460c12b5..e85ee54c 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -93,7 +93,7 @@ {% for line in lines -%} <p>{#-#} {% if line.contexts -%} - <span class="context-button">ctx</span>{#-#} + <span class="context-button">{{ line.contexts|len }} ctx</span>{#-#} <span class="context-list"> {% for context in line.contexts -%} <span class="context-line">{{context}}</span>{#-#} |