Skip to content

Commit 9961697

Browse files
committed
Remove trailing spaces before checking position of final brace.
1 parent 12a53b1 commit 9961697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpacked/jax/input/TeX/jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@
17071707
} else {i++}
17081708
}
17091709
var text = string.substr(this.i,i-this.i);
1710-
if (!text.match(/^\s*\\text[^a-zA-Z]/) || close !== text.length - 1) {
1710+
if (!text.match(/^\s*\\text[^a-zA-Z]/) || close !== text.replace(/\s+$/,'').length - 1) {
17111711
this.Push.apply(this,this.InternalMath(text,0));
17121712
this.i = i;
17131713
}

0 commit comments

Comments
 (0)