proper white space matching
This commit is contained in:
parent
43eafdcc6b
commit
a02b64c510
1 changed files with 1 additions and 2 deletions
|
|
@ -103,9 +103,8 @@ ace.layer.Text = function(parentEl) {
|
||||||
var output = token.value
|
var output = token.value
|
||||||
.replace(/&/g, "&")
|
.replace(/&/g, "&")
|
||||||
.replace(/</g, "<")
|
.replace(/</g, "<")
|
||||||
.replace(/ /g, " ")
|
.replace(/\v\f \u00a0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000/g, " ")
|
||||||
.replace(/\t/g, this.$tabString);
|
.replace(/\t/g, this.$tabString);
|
||||||
// TODO: proper space matching!
|
|
||||||
|
|
||||||
if (token.type !== "text") {
|
if (token.type !== "text") {
|
||||||
stringBuilder.push("<span class='", token.type, "'>", output, "</span>");
|
stringBuilder.push("<span class='", token.type, "'>", output, "</span>");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue