From 1e9dcb81f8c9c8a756a4e125708bd860eb713fa8 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 4 May 2014 15:27:39 -0400 Subject: [PATCH] Mark functions that are turned into TEXCLASS.OP so that spacing can be improved for things that look like \left...\right. --- unpacked/jax/element/mml/jax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/element/mml/jax.js b/unpacked/jax/element/mml/jax.js index e24fd3339..e8e41bac0 100644 --- 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)) { // // came from \left...\right // so treat as subexpression (tex class INNER)