I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 26524e3e authored by zzz's avatar zzz
Browse files

Console: Don't lose tabs in log messages

parent 7048ba67
No related branches found
No related tags found
No related merge requests found
Pipeline #1352 failed
...@@ -278,6 +278,7 @@ public class LogsHelper extends HelperBase { ...@@ -278,6 +278,7 @@ public class LogsHelper extends HelperBase {
msg = msg.substring(0, msg.length() - NL.length()); msg = msg.substring(0, msg.length() - NL.length());
// replace \n so that exception stack traces will format correctly and will paste nicely into pastebin // 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("\n", "<br>&nbsp;&nbsp;&nbsp;&nbsp;\n");
msg = msg.replace("\t", "&nbsp;&nbsp;&nbsp;&nbsp;");
buf.append("<li>"); buf.append("<li>");
if (colorize) { if (colorize) {
// TODO this would be a lot easier if LogConsoleBuffer stored LogRecords instead of formatted strings // TODO this would be a lot easier if LogConsoleBuffer stored LogRecords instead of formatted strings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment