don't render a new line character in the last line

This commit is contained in:
Fabian Jakobs 2010-04-23 11:01:19 +02:00
commit 68e36be961

View file

@ -115,7 +115,7 @@ ace.layer.Text = function(parentEl) {
}
};
if (this.$showInvisibles)
if (this.$showInvisibles && row !== this.doc.getLength() - 1)
stringBuilder.push("<span class='invisible'>" + this.ENTER_CHAR + "</span>");
};