Fix FormatMessageList appending a new line at the end of the list

This commit is contained in:
abcdefg30
2018-03-29 16:51:15 +02:00
committed by Paul Chote
parent 207a355909
commit 910064dfe5

View File

@@ -133,7 +133,7 @@ namespace OpenRA.Mods.Common.UpdateRules
public static string FormatMessageList(IEnumerable<string> 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))));
}
}