diff --git a/files/templates/comments.html b/files/templates/comments.html
index b3c08f92b2..6becccb6a7 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -212,7 +212,7 @@
diff --git a/files/templates/submission.html b/files/templates/submission.html
index 7376c9da4c..9df272d752 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -677,7 +677,7 @@
![]({{p.author.profile_url}})
{% if p.author.hat_active -%}
-
![{{p.author.hat_tooltip}}](/i/hats/{{p.author.hat_active}})
+
![{{p.author.hat_tooltip}}](/i/hats/{{p.author.hat_active}})
{%- endif %}
{{p.author_name}}
diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html
index b774957c4d..4638e8807c 100644
--- a/files/templates/submission_listing.html
+++ b/files/templates/submission_listing.html
@@ -213,7 +213,7 @@
![]({{p.author.profile_url}})
{% if p.author.hat_active -%}
-
![{{p.author.hat_tooltip}}](/i/hats/{{p.author.hat_active}})
+
![{{p.author.hat_tooltip}}](/i/hats/{{p.author.hat_active}})
{%- endif %}
{{p.author_name}}
diff --git a/files/templates/userpage.html b/files/templates/userpage.html
index 769ddbaa9e..9db8149df9 100644
--- a/files/templates/userpage.html
+++ b/files/templates/userpage.html
@@ -38,11 +38,11 @@