Browse files

carriagereturn-newline causes double-space in IE8

  • Loading branch information...
1 parent dcfc93b commit 0306aa77d30093a5e3f76b0d2ac3485c28d48841 @alfred-c alfred-c committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 expanding.js
View
2 expanding.js
@@ -50,7 +50,7 @@
};
function resize() {
- $(this).closest('.expandingText').find("div").text(this.value + ' ');
+ $(this).closest('.expandingText').find("div").text(this.value.replace(/\r\n/g, "\n") + ' ');
$(this).trigger("resize.expanding");
}

0 comments on commit 0306aa7

Please sign in to comment.