diff --git a/templates/problem/problem.html b/templates/problem/problem.html
index b2d619ec63..5fad21d014 100644
--- a/templates/problem/problem.html
+++ b/templates/problem/problem.html
@@ -252,7 +252,7 @@
{{ title }}
{% if perms.judge.change_judge %}
{% for judge in available_judges %}
{{ judge.name }}
- {% if not loop.last %}, {% endif %}
+ {%- if not loop.last %}, {% endif %}
{% endfor %}
{% else %}
{{ available_judges|join(", ") }}