www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0da7c458ea8e0658e4201cda9849286da19717ff
parent edce81f6914d665572f809171d2253aad9d22c8f
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sun, 28 Dec 2014 15:54:33 -0500

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

Diffstat:
Munpacked/config/default.js | 2+-
Munpacked/jax/output/NativeMML/jax.js | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/unpacked/config/default.js b/unpacked/config/default.js @@ -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 diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js @@ -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++) {