From 87377c086b8296f64119186be8d7d3f3322c9fad Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Fri, 18 Feb 2022 13:41:17 +0100 Subject: [PATCH] fix formatting of failed missions --- BGS/DiscordLogGenerator.cs | 2 +- BGS/LogGenerator/FailedMissionFormat.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/BGS/DiscordLogGenerator.cs b/BGS/DiscordLogGenerator.cs index b89a0fd..c83d6a2 100644 --- a/BGS/DiscordLogGenerator.cs +++ b/BGS/DiscordLogGenerator.cs @@ -66,7 +66,7 @@ namespace EliteBGS.BGS { foreach (LogFormatter formatter in formatters) { string text = formatter.GenerateLog(objective); if (!string.IsNullOrEmpty(text)) { - objlog.AppendFormat("{0}\n", text); + objlog.AppendFormat("{0}\n", text.Trim()); } } diff --git a/BGS/LogGenerator/FailedMissionFormat.cs b/BGS/LogGenerator/FailedMissionFormat.cs index 20cd1c3..a425c43 100644 --- a/BGS/LogGenerator/FailedMissionFormat.cs +++ b/BGS/LogGenerator/FailedMissionFormat.cs @@ -21,9 +21,7 @@ namespace EliteBGS.BGS.LogGenerator { ); } - builder.Append("\n"); - - return builder.ToString(); + return builder.ToString().Trim(); } } }