From d8f43d1f1a4144233b3a8d34c0e6ea240eaf64d9 Mon Sep 17 00:00:00 2001 From: ccuser44 <68124053+ccuser44@users.noreply.github.com> Date: Fri, 21 Apr 2023 17:24:55 +0300 Subject: [PATCH 1/2] Made IDEs correctly use Unix LF instead of CRLF Some IDEs will use CRLF line endings instead of just a newline (things on Windows) This fixes it so that they will use the proper LF ie. a single newline instead of a carriage return and a newline --- .editorconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/.editorconfig b/.editorconfig index c6d7217..36b44bb 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,3 +1,4 @@ [*.lua] indent_style = tab indent_size = 4 +end_of_line = lf From 1e8599965ea6a171a55ea82ce0c28a3c60ebf652 Mon Sep 17 00:00:00 2001 From: ccuser44 <68124053+ccuser44@users.noreply.github.com> Date: Fri, 21 Apr 2023 17:25:54 +0300 Subject: [PATCH 2/2] Made git automatically convert to LF This makes git automatically convert invalid CRLF line endings to LF (If improperly done by an IDE) --- .gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..ca69452 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +*.lua text=auto +*.lua eol=lf