From 910064dfe5905d28834bb3c36e118ef8c3734166 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Thu, 29 Mar 2018 16:51:15 +0200 Subject: [PATCH] Fix FormatMessageList appending a new line at the end of the list --- OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs b/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs index 0f3be2fe9e..3bdfa160d2 100644 --- a/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs +++ b/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs @@ -133,7 +133,7 @@ namespace OpenRA.Mods.Common.UpdateRules public static string FormatMessageList(IEnumerable messages, int indent = 0) { var prefix = string.Concat(Enumerable.Repeat(" ", indent)); - return string.Concat(messages.Select(m => prefix + " * {0}\n".F(m.Replace("\n", "\n " + prefix)))); + return string.Join("\n", messages.Select(m => prefix + " * {0}".F(m.Replace("\n", "\n " + prefix)))); } }