diff --git a/templates/emails/summary-downtimes-html.html b/templates/emails/summary-downtimes-html.html
index b513d21e..f20f5ef7 100644
--- a/templates/emails/summary-downtimes-html.html
+++ b/templates/emails/summary-downtimes-html.html
@@ -1,5 +1,6 @@
{% load humanize hc_extras %}
{% regroup checks by project as groups %}
+{% spaceless %}
{% for group in groups %}
@@ -81,4 +82,5 @@
{% endfor %}
{% endfor %}
-
\ No newline at end of file
+
+{% endspaceless %}
diff --git a/templates/emails/summary-html.html b/templates/emails/summary-html.html
index 396599e6..645d5243 100644
--- a/templates/emails/summary-html.html
+++ b/templates/emails/summary-html.html
@@ -1,5 +1,6 @@
{% load humanize hc_extras %}
{% regroup checks by project as groups %}
+{% spaceless %}
{% for group in groups %}
@@ -70,3 +71,4 @@
{% endfor %}
+{% endspaceless %}
\ No newline at end of file