From 39b490b89c1cdede236b371ef1846c7fd723b309 Mon Sep 17 00:00:00 2001 From: Matthe815 Date: Tue, 4 Jul 2023 23:45:52 -0400 Subject: [PATCH] bug-fix: Fixed bug where newlines weren't handled --- QuestEditor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QuestEditor.cs b/QuestEditor.cs index 5ed86b5..e132b9c 100644 --- a/QuestEditor.cs +++ b/QuestEditor.cs @@ -114,7 +114,8 @@ public static string ReadNullTerminated(Stream file) string ReformatString(string text) { - text = text.Replace("\r\n", ""); + text = text.Replace("\n\r\n", "\n"); + text = text.Replace("\r\n", "\n"); text = text.Replace("", ""); return text; }