This should just about fix that.
This commit is contained in:
parent
6594a3fe55
commit
5705c067fe
1 changed files with 6 additions and 2 deletions
|
|
@ -137,8 +137,12 @@ var Text = function(parentEl) {
|
||||||
if (this.displayIndentGuides) {
|
if (this.displayIndentGuides) {
|
||||||
this.$indentGuideRe = /\s\S| \t|\t |\s$/;
|
this.$indentGuideRe = /\s\S| \t|\t |\s$/;
|
||||||
var className = "ace_indent-guide";
|
var className = "ace_indent-guide";
|
||||||
|
var spaceClass = "";
|
||||||
|
var tabClass = "";
|
||||||
if (this.showInvisibles) {
|
if (this.showInvisibles) {
|
||||||
className += " ace_invisible";
|
className += " ace_invisible";
|
||||||
|
spaceClass = " ace_invisible_space";
|
||||||
|
tabClass = " ace_invisible_tab";
|
||||||
var spaceContent = lang.stringRepeat(this.SPACE_CHAR, this.tabSize);
|
var spaceContent = lang.stringRepeat(this.SPACE_CHAR, this.tabSize);
|
||||||
var tabContent = this.TAB_CHAR + lang.stringRepeat("\xa0", this.tabSize - 1);
|
var tabContent = this.TAB_CHAR + lang.stringRepeat("\xa0", this.tabSize - 1);
|
||||||
} else{
|
} else{
|
||||||
|
|
@ -146,8 +150,8 @@ var Text = function(parentEl) {
|
||||||
var tabContent = spaceContent;
|
var tabContent = spaceContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$tabStrings[" "] = "<span class='" + className + " ace_invisible_space'>" + spaceContent + "</span>";
|
this.$tabStrings[" "] = "<span class='" + className + spaceClass + "'>" + spaceContent + "</span>";
|
||||||
this.$tabStrings["\t"] = "<span class='" + className + " ace_invisible_tab'>" + tabContent + "</span>";
|
this.$tabStrings["\t"] = "<span class='" + className + tabClass + "'>" + tabContent + "</span>";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue