From 4c3f2c20cc033bc104248d00ae6cf1e3e58ea51a Mon Sep 17 00:00:00 2001 From: Tyler Sommer Date: Sun, 23 Nov 2014 15:59:39 -0800 Subject: [PATCH] valueForMirror in autogrow-textarea now replaces spaces with   --- paper-autogrow-textarea.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); },