From 9dfb6134bb100e9595fe25d2a417840c2bc4eeb8 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 19 Mar 2020 03:50:01 +0100 Subject: [PATCH] fixed split strings having a trailing space --- MLEM/Extensions/SpriteFontExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM/Extensions/SpriteFontExtensions.cs b/MLEM/Extensions/SpriteFontExtensions.cs index e3453f3..0231f63 100644 --- a/MLEM/Extensions/SpriteFontExtensions.cs +++ b/MLEM/Extensions/SpriteFontExtensions.cs @@ -61,7 +61,7 @@ namespace MLEM.Extensions { } total.Append(curr).Append('\n'); } - return total.ToString(0, total.Length - 1); + return total.ToString(0, total.Length - 2); } }