From d683cbf0a587c128d5d952d6951b10cea360a087 Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 25 Dec 2015 16:57:41 +0200 Subject: [PATCH] Fix multiline issue --- public_html/js/Views.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public_html/js/Views.js b/public_html/js/Views.js index f582e59..923e9e5 100644 --- a/public_html/js/Views.js +++ b/public_html/js/Views.js @@ -293,7 +293,8 @@ Views.prototype.formatString = function (tag, text) { edited = edited.replace("\n", "
"); $(tag).html(edited); } else { - $(tag).text(edited); + var tmp = $(tag).text(edited); + tmp.html(tmp.html().replace(/\n/g,'
')); } };