[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [ernie/master] Convert line breaks for display on a website.



Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Tue, 13 Apr 2010 17:00:00 +0200
Subject: Convert line breaks for display on a website.
Commit: 80d96621280a148f3147c018ac94e9d01ac91fbf

---
 src/LoggingConfiguration.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/LoggingConfiguration.java b/src/LoggingConfiguration.java
index b81fc6e..88359f4 100644
--- a/src/LoggingConfiguration.java
+++ b/src/LoggingConfiguration.java
@@ -82,7 +82,9 @@ public class LoggingConfiguration {
             + "            <td>"
             + dateTimeFormat.format(new Date(record.getMillis()))
             + "</td>\n"
-            + "            <td>" + record.getMessage() + "</td>\n"
+            + "            <td>"
+            + record.getMessage().replaceAll("\n", "<br/>")
+            + "</td>\n"
             + "          </tr>\n";
         if (record.getLevel().equals(Level.INFO)) {
           this.infos.append(msg);
-- 
1.6.5