From 26524e3e4bb9d5cba308a65c992a5b4722cf970b Mon Sep 17 00:00:00 2001 From: zzz <zzz@i2pmail.org> Date: Fri, 1 Dec 2023 09:14:33 -0500 Subject: [PATCH] Console: Don't lose tabs in log messages --- .../java/src/net/i2p/router/web/helpers/LogsHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/routerconsole/java/src/net/i2p/router/web/helpers/LogsHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/helpers/LogsHelper.java index 25021f61bc..94fe9d1581 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/helpers/LogsHelper.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/helpers/LogsHelper.java @@ -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> \n"); + msg = msg.replace("\t", " "); buf.append("<li>"); if (colorize) { // TODO this would be a lot easier if LogConsoleBuffer stored LogRecords instead of formatted strings -- GitLab