From 5328032e0bc29f9c462a07e169454658999446cd Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 17 Jun 2024 12:40:09 -0400 Subject: [PATCH] fix: use special newlines --- Plugin.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugin.cs b/Plugin.cs index 3a08745..5e255ff 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -51,7 +51,8 @@ public class Plugin : IDalamudPlugin { try { this.Data = de.Deserialize(yaml); foreach (var replacement in this.Data.Replacements) { - var textBytes = Encoding.UTF8.GetBytes(replacement.Text); + var replaced = replacement.Text.ReplaceLineEndings("\x02\x10\x01\x03"); + var textBytes = Encoding.UTF8.GetBytes(replaced); unsafe { var ptr = (uint*) Marshal.AllocHGlobal(8 + textBytes.Length + 1);