diff --git a/files/templates/submission.html b/files/templates/submission.html
index b99139730..dcd4efd99 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -1,10 +1,10 @@
{% extends "default.html" %}
{% block pagetitle %}
-{% if comment_info %}
+{%- if comment_info -%}
@{{comment_info.author_name}} comments on '{{p.plaintitle(v)}}'
-{% else %}
+{%- else -%}
{{p.plaintitle(v)}}
-{% endif %}
+{%- endif -%}
{% endblock %}
{% block pagetype %}thread{% endblock %}
{% block head_final %}