Don't include attributes that are their defaults in NativeMML output

This commit is contained in:
Davide P. Cervone 2014-12-28 15:54:33 -05:00
parent edce81f691
commit 0da7c458ea
2 changed files with 2 additions and 2 deletions

View File

@ -510,7 +510,7 @@ MathJax.Hub.Config({
//
// This is the amound of indentation (from right or left) for the tags.
//
TagIndent: ".8em",
TagIndent: "0.8em",
//
// This is the width to use for the multline environment

View File

@ -495,7 +495,7 @@
if (!this.attrNames) {
if (this.type === "mstyle") {defaults = MML.math.prototype.defaults}
for (var id in defaults) {if (!skip[id] && defaults.hasOwnProperty(id)) {
if (this[id] != null) {tag.setAttribute(id,this.NativeMMLattribute(this[id]))}
if (this[id] != null && this[id] !== defaults[id]) {tag.setAttribute(id,this.NativeMMLattribute(this[id]))}
}}
}
for (var i = 0, m = copy.length; i < m; i++) {