commit d24b750cbf0cece6698933fc7f3497d625b026a3
parent a314139f597a98f1857ec627e08697e665e820d4
Author: Davide P. Cervone <dpvc@union.edu>
Date: Fri, 30 May 2014 12:25:01 -0400
Don't add stretchy=dalse if it is not needed
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js
@@ -1253,8 +1253,8 @@
* Handle other characters (as <mo> elements)
*/
Other: function (c) {
- var def = {stretchy: false}, mo;
- if (this.stack.env.font) {def.mathvariant = this.stack.env.font}
+ var def, mo;
+ if (this.stack.env.font) {def = {mathvariant: this.stack.env.font}}
if (TEXDEF.remap[c]) {
c = TEXDEF.remap[c];
if (c instanceof Array) {def = c[1]; c = c[0]}
@@ -1262,6 +1262,7 @@
} else {
mo = MML.mo(c).With(def);
}
+ if (mo.autoDefault("stretchy",true)) {mo.stretchy = false}
if (mo.autoDefault("texClass",true) == "") {mo = MML.TeXAtom(mo)}
this.Push(this.mmlToken(mo));
},