commento.js: preserve whitespace in edits

This commit is contained in:
Adhityaa Chandrasekar
2019-09-13 16:15:00 -07:00
parent 982a574512
commit b278522e35
+1 -1
View File
@@ -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(" ", "&nbsp;").replace("\n", "<br>");
var editButton = $(ID_EDIT + id);