Commit 959561f7 authored by Camil Staps's avatar Camil Staps 🍃

This seems to fix #210 (spaces in input field were discarded)

parent b4912c6b
......@@ -997,7 +997,7 @@ if (make_content_editable) {
// add a space at the start.
caret = 0;
}
var val = this.innerText.replace(/^\s+/, '');
var val = this.innerText.replace(/^\s+/, '').replace(/\n/g, '\u00a0');
var html = highlightQuery(val);
if (html == '') {
html = '<span id="caret-spacer"></span>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment