commit 1e9dcb81f8c9c8a756a4e125708bd860eb713fa8
parent 09ce98092b62e166d99e2f0ceb9a926d18a89e6b
Author: Davide P. Cervone <dpvc@union.edu>
Date: Sun, 4 May 2014 15:27:39 -0400
Mark functions that are turned into TEXCLASS.OP so that spacing can be improved for things that look like \left...\right.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/unpacked/jax/element/mml/jax.js b/unpacked/jax/element/mml/jax.js
@@ -610,7 +610,7 @@ MathJax.ElementJax.mml.Augment({
this.texClass = this.Get("texClass");
if (this.data.join("") === "\u2061") {
// force previous node to be texClass OP, and skip this node
- if (prev) prev.texClass = MML.TEXCLASS.OP;
+ if (prev) {prev.texClass = MML.TEXCLASS.OP; prev.fnOP = true}
this.texClass = this.prevClass = MML.TEXCLASS.NONE;
return prev;
}
@@ -752,7 +752,7 @@ MathJax.ElementJax.mml.Augment({
},
setTeXclass: function (prev) {
var i, m = this.data.length;
- if (this.open || this.close) {
+ if ((this.open || this.close) && (!prev || !prev.fnOP)) {
//
// <mrow> came from \left...\right
// so treat as subexpression (tex class INNER)