commit d0e4e1b8f57f6b2dee93b3774eb9fe54e5caafe6
parent f886216f2c6b843000f339bab7b04bb809b0750d
Author: Davide P. Cervone <dpvc@union.edu>
Date: Wed, 26 Aug 2015 08:47:42 -0400
Handle explicit width correctly for tables in SVG (don't remove extra column spacing)
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/unpacked/jax/output/SVG/autoload/mtable.js b/unpacked/jax/output/SVG/autoload/mtable.js
@@ -205,9 +205,9 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
// Get total width minus column spacing
WW = SVG.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 {
//
@@ -227,7 +227,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
if (WP > .98) {Wf = Wp/(Wt+Wp); WW = Wt + Wp} else {WW = Wt / (1-WP)}
} else {
WW = SVG.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++) {