diff --git a/paper-autogrow-textarea.html b/paper-autogrow-textarea.html index 8a8a145..e3170ce 100644 --- a/paper-autogrow-textarea.html +++ b/paper-autogrow-textarea.html @@ -131,7 +131,7 @@ }, valueForMirror: function(input) { - this.tokens = (input && input.value) ? input.value.replace(/&/gm, '&').replace(/"/gm, '"').replace(/'/gm, ''').replace(//gm, '>').split('\n') : ['']; + this.tokens = (input && input.value) ? input.value.replace(/ /gm, ' ').replace(/&/gm, '&').replace(/"/gm, '"').replace(/'/gm, ''').replace(//gm, '>').split('\n') : ['']; return this.constrain(this.tokens); },