Don't include attributes that are their defaults in NativeMML output
This commit is contained in:
parent
edce81f691
commit
0da7c458ea
|
@ -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
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user