diff --git a/src/js/input-controller.js b/src/js/input-controller.js index 39d2e0b64..0977e0395 100644 --- a/src/js/input-controller.js +++ b/src/js/input-controller.js @@ -417,7 +417,7 @@ function handleChar(char, charIndex) { char = " "; } - if (/\s/.test(char)) { + if (char !== "\n" && /\s/.test(char)) { handleSpace(); //insert space for expert and master or strict space,