fix new line formatting for discord log
This commit is contained in:
parent
94ef8f4cc4
commit
8fc177c730
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user