commento.js: preserve whitespace in edits
This commit is contained in:
parent
982a574512
commit
b278522e35
@ -1194,7 +1194,7 @@
|
||||
text.replaceWith(textareaCreate(id, true));
|
||||
|
||||
var textarea = $(ID_TEXTAREA + id);
|
||||
textarea.innerText = commentsMap[id].markdown;
|
||||
textarea.innerText = commentsMap[id].markdown.replace(" ", " ").replace("\n", "<br>");
|
||||
|
||||
var editButton = $(ID_EDIT + id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user