From b3a8432039bc8dc2ffd08df0b213bda3d1040c39 Mon Sep 17 00:00:00 2001 From: spiral Date: Mon, 13 Sep 2021 01:31:15 -0400 Subject: [PATCH] fix: add NormalizeLineEndSpacing to pk;edit --- PluralKit.Bot/Commands/Message.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/Message.cs b/PluralKit.Bot/Commands/Message.cs index ddaea6b0..6aed315a 100644 --- a/PluralKit.Bot/Commands/Message.cs +++ b/PluralKit.Bot/Commands/Message.cs @@ -52,7 +52,7 @@ namespace PluralKit.Bot if (_cache.GetRootChannel(msg.Message.Channel).Id != msg.Message.Channel) throw new PKError("PluralKit cannot edit messages in threads."); - var newContent = ctx.RemainderOrNull(); + var newContent = ctx.RemainderOrNull().NormalizeLineEndSpacing(); var originalMsg = await _rest.GetMessage(msg.Message.Channel, msg.Message.Mid); if (originalMsg == null)