mirror of
https://github.com/YuzuZensai/TrollSSH.git
synced 2026-09-13 19:49:04 +00:00
🐛 fix: newline issues
This commit is contained in:
+3
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user