diff --git a/files/templates/comments.html b/files/templates/comments.html
index 06ff22661..793ec7d87 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -208,9 +208,9 @@
lastCount = comments['{{p.id}}']
var commentsToCheck = [
{% for c in p.comments -%}
- {% if not (v and v.id==c.author_id) and not c.voted %}
+ {%- if not (v and v.id==c.author_id) and not c.voted %}
[{{c.id}}, {{c.created_utc * 1000}}],
- {% endif %}
+ {%- endif -%}
{% endfor %}
];
@@ -253,9 +253,9 @@
var commentsToCheck = [
{% for c in p.comments -%}
- {% if not (v and v.id==c.author_id) and not c.voted %}
+ {%- if not (v and v.id==c.author_id) and not c.voted %}
[{{c.id}}, {{c.created_utc * 1000}}],
- {% endif %}
+ {%- endif -%}
{% endfor %}
];
diff --git a/files/templates/submission.html b/files/templates/submission.html
index 278209d21..fac5b94a6 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -494,7 +494,7 @@
{% for c in p.comments -%}
{% if not (v and v.id==c.author_id) and not c.voted %}
[{{c.id}}, {{c.created_utc * 1000}}],
- {% endif %}
+ {%- endif -%}
{% endfor %}
];