summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/html.py')
-rw-r--r--coverage/html.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/coverage/html.py b/coverage/html.py
index 0d6e6f96..a7a92095 100644
--- a/coverage/html.py
+++ b/coverage/html.py
@@ -231,7 +231,8 @@ class HtmlReporter(Reporter):
else:
annotate_long = "%d missed branches: %s" % (
len(longs),
- ", ".join("%d) %s" % (num, ann_long) for num, ann_long in enumerate(longs, start=1)),
+ ", ".join("%d) %s" % (num, ann_long)
+ for num, ann_long in enumerate(longs, start=1)),
)
elif lineno in analysis.statements:
line_class.append(c_run)
@@ -262,7 +263,7 @@ class HtmlReporter(Reporter):
'fr': fr, 'nums': nums, 'lines': lines,
'time_stamp': self.time_stamp,
}
- html = spaceless(self.source_tmpl.render(template_values))
+ html = self.source_tmpl.render(template_values)
html_filename = rootname + ".html"
html_path = os.path.join(self.directory, html_filename)
@@ -425,17 +426,6 @@ def escape(t):
return t.replace("&", "&amp;").replace("<", "&lt;")
-def spaceless(html):
- """Squeeze out some annoying extra space from an HTML string.
-
- Nicely-formatted templates mean lots of extra space in the result.
- Get rid of some.
-
- """
- html = re.sub(r">\s+<p ", ">\n<p ", html)
- return html
-
-
def pair(ratio):
"""Format a pair of numbers so JavaScript can read them in an attribute."""
return "%s %s" % ratio