From 0ec8afbde02c9b925dc507caadcedaae1869d94f Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 4 Apr 2023 09:18:58 +0300 Subject: [PATCH] .editorconfig: fix commentary on end_of_line, repeat after me .gitattributes --- .editorconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 8effb159..c352657e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,7 +5,9 @@ root = true # Defaults [*] # Future: https://github.com/editorconfig/editorconfig/issues/89 -# Linux line endings, this repo/file is unlikely to be used in Windows +# Remember to always .gitattributes. lf line-endings are prettier default and +# required by doctoc, so enabling either of those breaks on Windows unless lf +# is specified here and in .gitattributes end_of_line = lf trim_trailing_whitespace = true insert_final_newline = true @@ -18,6 +20,7 @@ indent_size = tab # *nix, just in case [*.{bash,sh}] +# .gitattributes ! end_of_line = lf # Limnoria/Supybot config files use trailing spaces for empty config files, @@ -67,6 +70,7 @@ trim_trailing_whitespace = false # Windows line-endings for Windows [*.{reg,bat,ahk}] +# Remember the .gitattributes ! end_of_line = crlf # YAML requires spaces. The GitHub citation files look YAML to me.