diff --git a/.editorconfig b/.editorconfig
index c11afeab1..8195fbb5d 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -40,3 +40,10 @@ indent_size = 2
[cypress/**]
indent_size = 2
+
+# Settings for HTML templates
+# ---------------------------------------------------------
+# HTML should not have final newlines, because that causes visible whitespace when includes are rendered
+
+[ietf/**.html]
+insert_final_newline = false
diff --git a/ietf/templates/person/person_link.html b/ietf/templates/person/person_link.html
index a8e2da9d7..424159080 100644
--- a/ietf/templates/person/person_link.html
+++ b/ietf/templates/person/person_link.html
@@ -8,5 +8,4 @@
href="mailto:{{ email|urlencode }}"
aria-label="Compose email to {{ email }}."
title="Compose email to {{ email }}.">
- {% endif %}{% else %}(None){% endif %}
-{% endif %}
+ {% endif %}{% else %}(None){% endif %}{% endif %}
\ No newline at end of file