From 68e36be9618fdd7df381313f85892ce32acf844c Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 23 Apr 2010 11:01:19 +0200 Subject: [PATCH] don't render a new line character in the last line --- src/layer/Text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layer/Text.js b/src/layer/Text.js index 2e7f120d..14c65eb7 100644 --- a/src/layer/Text.js +++ b/src/layer/Text.js @@ -115,7 +115,7 @@ ace.layer.Text = function(parentEl) { } }; - if (this.$showInvisibles) + if (this.$showInvisibles && row !== this.doc.getLength() - 1) stringBuilder.push(""); };