Trim spaces from content-mathml elements (helps with issue #989.
This commit is contained in:
parent
4779c91b5f
commit
5d4a84345e
|
@ -190,6 +190,7 @@ MathJax.Extension["MathML/content-mathml"] = (function(HUB) {
|
||||||
*/
|
*/
|
||||||
appendToken: function(parentNode,name,textContent) {
|
appendToken: function(parentNode,name,textContent) {
|
||||||
var element = CToP.createElement(name);
|
var element = CToP.createElement(name);
|
||||||
|
textContent = textContent.replace(/^\s+/,"").replace(/\s+$/,"");
|
||||||
if (name === 'mn' && textContent.substr(0,1) === "-") {
|
if (name === 'mn' && textContent.substr(0,1) === "-") {
|
||||||
//
|
//
|
||||||
// use <mrow><mo>−</mo><mn>n</mn></mrow> instead of <mn>-n</mn>
|
// use <mrow><mo>−</mo><mn>n</mn></mrow> instead of <mn>-n</mn>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user