fix new line formatting for discord log

This commit is contained in:
Florian Stinglmayr 2022-02-27 16:16:20 +01:00
parent 94ef8f4cc4
commit 8fc177c730

View File

@ -61,18 +61,19 @@ namespace EliteBGS.BGS {
foreach (Objective objective in objectives) {
StringBuilder objlog = new StringBuilder();
objlog.AppendFormat("{0}\n", GenerateObjectiveHeader(objective));
log.AppendFormat("{0}\n", GenerateObjectiveHeader(objective));
foreach (LogFormatter formatter in formatters) {
string text = formatter.GenerateLog(objective);
text = text.Trim();
if (!string.IsNullOrEmpty(text)) {
objlog.AppendFormat("{0}\n", text.Trim());
objlog.AppendFormat("{0}\n\n", text);
}
}
objlog.AppendFormat("{0}\n", GenerateObjectiveFooter(objective));
log.AppendFormat("{0}\n", objlog.ToString().Trim());
log.AppendFormat("{0}\n", GenerateObjectiveFooter(objective));
}
log.AppendFormat("{0}\n", GenerateFooter());