diff --git a/unpacked/extensions/toMathML.js b/unpacked/extensions/toMathML.js index ccd788ebd..40d19f59c 100644 --- a/unpacked/extensions/toMathML.js +++ b/unpacked/extensions/toMathML.js @@ -147,7 +147,7 @@ MathJax.Hub.Register.LoadHook("[MathJax]/jax/element/mml/jax.js",function () { {annotation = MathJax.InputJax[jax.inputJax].annotationEncoding} var nested = (this.data[0] && this.data[0].data.length > 1); var tag = this.type, attr = this.toMathMLattributes(); - var data = [], SPACE = space + (annotation ? " " : "") + (nested ? " " : ""); + var data = [], SPACE = space + (annotation ? " " + (nested ? " " : "") : "") + " "; for (var i = 0, m = this.data.length; i < m; i++) { if (this.data[i]) {data.push(this.data[i].toMathML(SPACE))} else {data.push(SPACE+"")} @@ -162,7 +162,7 @@ MathJax.Hub.Register.LoadHook("[MathJax]/jax/element/mml/jax.js",function () { var xmlEscapedTex = jax.originalText.replace(/[&<>]/g, function(item) { return { '>': '>', '<': '<','&': '&' }[item] }); - data.push(space+' '+xmlEscapedTex+""); + data.push(space+' '+xmlEscapedTex+""); data.push(space+" "); } return space+"<"+tag+attr+">\n"+data.join("\n")+"\n"+space+"";