www

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

commit f886216f2c6b843000f339bab7b04bb809b0750d
parent 3d4bc8cd0f6d76800cea1f0ab0a0b8cc73a2b7e8
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Wed, 26 Aug 2015 06:58:46 -0400

Handle explicit width correctly (don't remove extra column spacing)

Diffstat:
Munpacked/jax/output/HTML-CSS/autoload/mtable.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/unpacked/jax/output/HTML-CSS/autoload/mtable.js b/unpacked/jax/output/HTML-CSS/autoload/mtable.js @@ -214,9 +214,9 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { } else { // Get total width minus column spacing WW = HTMLCSS.length2em(values.width,mu); - for (i = 0, m = Math.min(J+1,CSPACE.length); i < m; i++) {WW -= CSPACE[i]} + for (i = 0, m = Math.min(J,CSPACE.length); i < m; i++) {WW -= CSPACE[i]} // Determine individual column widths - WW /= J+1; + WW /= J; for (i = 0, m = Math.min(J+1,CWIDTH.length); i < m; i++) {W[i] = WW} } } else { @@ -242,7 +242,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { if (WP > .98) {Wf = Wp/(Wt+Wp); WW = Wt + Wp} else {WW = Wt / (1-WP)} } else { WW = HTMLCSS.length2em(values.width,mu); - for (i = 0, m = Math.min(J+1,CSPACE.length); i < m; i++) {WW -= CSPACE[i]} + for (i = 0, m = Math.min(J,CSPACE.length); i < m; i++) {WW -= CSPACE[i]} } // Determine the relative column widths for (i = 0, m = P.length; i < m; i++) {