From 42e6be60a8a70e7989cf2fbf5b3dbcaa835bf13a Mon Sep 17 00:00:00 2001 From: Don Cross Date: Sat, 30 Sep 2023 22:04:54 -0400 Subject: [PATCH] I learned that Go source is always supposed to have CR line endings, even on Windows. --- .gitattributes | 1 + generate/makedoc.bat | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..50c1eaf8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.go text eol=cr diff --git a/generate/makedoc.bat b/generate/makedoc.bat index 4aa16d13..303b5989 100644 --- a/generate/makedoc.bat +++ b/generate/makedoc.bat @@ -30,15 +30,6 @@ for %%f in (..\source\c\astronomy.c ..\source\js\astronomy.js ..\source\python\a ) echo.Formatting Go code. -for %%f in ( - ..\source\golang\astronomy.go - ..\source\golang\astronomy_test.go -) do ( - node eol_hack.js %%f || ( - echo.ERROR cleaning newlines in file: %%f - exit /b 1 - ) -) cd ..\source\golang go version || ( echo.FATAL: Cannot find Go compiler.