Fix multiline issue
This commit is contained in:
parent
d41205a04e
commit
d683cbf0a5
@ -293,7 +293,8 @@ Views.prototype.formatString = function (tag, text) {
|
|||||||
edited = edited.replace("\n", "<br/>");
|
edited = edited.replace("\n", "<br/>");
|
||||||
$(tag).html(edited);
|
$(tag).html(edited);
|
||||||
} else {
|
} else {
|
||||||
$(tag).text(edited);
|
var tmp = $(tag).text(edited);
|
||||||
|
tmp.html(tmp.html().replace(/\n/g,'<br/>'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user