From: Florian Zeitz Date: Wed, 6 Oct 2010 17:21:13 +0000 (+0200) Subject: Convert newlines to
, for better readability X-Git-Url: http://cgit.babelmonkeys.de/?p=adhocweb.git;a=commitdiff_plain;h=35279be3c7092dd6dc33e03ca5f09c01670a581e Convert newlines to
, for better readability --- diff --git a/js/main.js b/js/main.js index 1011dc8..4db92c8 100644 --- a/js/main.js +++ b/js/main.js @@ -51,6 +51,7 @@ function addNote(elem, text, type) { if (!type) { type = "info"; } + text = text.replace(/\n/g, "
"); $(elem).append("

" + text + "

"); }