Fix multiline issue

This commit is contained in:
Victor 2015-12-25 16:57:41 +02:00
parent d41205a04e
commit d683cbf0a5

View File

@ -293,7 +293,8 @@ Views.prototype.formatString = function (tag, text) {
edited = edited.replace("\n", "<br/>");
$(tag).html(edited);
} else {
$(tag).text(edited);
var tmp = $(tag).text(edited);
tmp.html(tmp.html().replace(/\n/g,'<br/>'));
}
};