From f45bf5b8d4f76e5c847b8496a2ee7ef96c665077 Mon Sep 17 00:00:00 2001 From: adam Date: Sun, 18 Apr 2004 01:39:02 +0000 Subject: [PATCH] better readability for multiline log messages darcs-hash:20040418013902-5007d-544dbbf5453d094834bce85413a26b691f6ab00e.gz --- src/org/ibex/util/Log.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/ibex/util/Log.java b/src/org/ibex/util/Log.java index 5d09216..de7fe8d 100644 --- a/src/org/ibex/util/Log.java +++ b/src/org/ibex/util/Log.java @@ -134,10 +134,12 @@ public class Log { } catch (IOException e) { logstream.println(colorize(RED, true, "Logger: exception thrown by ByteArrayInputStream -- this should not happen")); } + lastClassName = ""; return; } String str = message.toString(); + if (str.indexOf('\n') != -1) lastClassName = ""; while(str.indexOf('\t') != -1) str = str.substring(0, str.indexOf('\t')) + " " + str.substring(str.indexOf('\t') + 1); -- 1.7.10.4