Skip to content

Commit

Permalink
Console: Don't lose tabs in log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzi2p committed Dec 1, 2023
1 parent 7048ba6 commit 26524e3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ private String formatMessages(List<String> msgs) {
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
Expand Down

0 comments on commit 26524e3

Please sign in to comment.