From f39e70a0a006242f0acbe0809b4d9dddebf549de Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Thu, 19 May 2022 06:21:12 -0700 Subject: [PATCH] fix: Don't add newlines at EOF, it cause visible whitespace for HTML includes (#3989) --- .editorconfig | 7 +++++++ ietf/templates/person/person_link.html | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) 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