From 3b1d341573935bb0689e443ae544b16f30010e0c Mon Sep 17 00:00:00 2001 From: Yuzu Date: Mon, 13 Jul 2026 21:11:09 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20newline=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.go b/src/config.go index cb5b5e4..06ab41c 100644 --- a/src/config.go +++ b/src/config.go @@ -138,5 +138,7 @@ func loadOptionalTextFile(filePath string) (string, bool) { if err != nil { return "", false } - return string(data), true + text := strings.ReplaceAll(string(data), "\r\n", "\n") + text = strings.ReplaceAll(text, "\n", "\r\n") + return text, true }