Console: Don't lose tabs in log messages

This commit is contained in:
zzz
2023-12-01 09:14:33 -05:00
parent 7048ba6784
commit 26524e3e4b

View File

@@ -278,6 +278,7 @@ public class LogsHelper extends HelperBase {
msg = msg.substring(0, msg.length() - NL.length());
// replace \n so that exception stack traces will format correctly and will paste nicely into pastebin
msg = msg.replace("\n", "<br>&nbsp;&nbsp;&nbsp;&nbsp;\n");
msg = msg.replace("\t", "&nbsp;&nbsp;&nbsp;&nbsp;");
buf.append("<li>");
if (colorize) {
// TODO this would be a lot easier if LogConsoleBuffer stored LogRecords instead of formatted strings