🐛 fix: newline issues

This commit is contained in:
2026-07-13 21:11:09 +07:00
parent 72473233ce
commit 3b1d341573
+3 -1
View File
@@ -138,5 +138,7 @@ func loadOptionalTextFile(filePath string) (string, bool) {
if err != nil { if err != nil {
return "", false return "", false
} }
return string(data), true text := strings.ReplaceAll(string(data), "\r\n", "\n")
text = strings.ReplaceAll(text, "\n", "\r\n")
return text, true
} }