[or-cvs] [ernie/master] Convert line breaks for display on a website.
karsten at torproject.org
karsten at torproject.org
Tue Apr 13 15:00:27 UTC 2010
Author: Karsten Loesing <karsten.loesing at gmx.net>
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
More information about the tor-commits
mailing list