This should just about fix that.

This commit is contained in:
Robert Bruce Park 2014-03-14 22:40:00 -07:00
commit 5705c067fe

View file

@ -137,8 +137,12 @@ var Text = function(parentEl) {
if (this.displayIndentGuides) {
this.$indentGuideRe = /\s\S| \t|\t |\s$/;
var className = "ace_indent-guide";
var spaceClass = "";
var tabClass = "";
if (this.showInvisibles) {
className += " ace_invisible";
spaceClass = " ace_invisible_space";
tabClass = " ace_invisible_tab";
var spaceContent = lang.stringRepeat(this.SPACE_CHAR, this.tabSize);
var tabContent = this.TAB_CHAR + lang.stringRepeat("\xa0", this.tabSize - 1);
} else{
@ -146,8 +150,8 @@ var Text = function(parentEl) {
var tabContent = spaceContent;
}
this.$tabStrings[" "] = "<span class='" + className + " ace_invisible_space'>" + spaceContent + "</span>";
this.$tabStrings["\t"] = "<span class='" + className + " ace_invisible_tab'>" + tabContent + "</span>";
this.$tabStrings[" "] = "<span class='" + className + spaceClass + "'>" + spaceContent + "</span>";
this.$tabStrings["\t"] = "<span class='" + className + tabClass + "'>" + tabContent + "</span>";
}
};