commit 2307a753b2cf08d2a971c829ce41ca86b2af63e1
parent 3cdcd73b01a0a3407586934e3fb63f06d35bc9c3
Author: Davide P. Cervone <dpvc@union.edu>
Date: Wed, 2 Dec 2015 14:58:53 -0500
Fix problem with mtext losing initial spacing when the mtext containe only one printable character. Issue #1316.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js
@@ -639,7 +639,7 @@
}
}
if (text.length == 1 && font.skew && font.skew[n]) {svg.skew = font.skew[n]*1000}
- if (svg.element.childNodes.length === 1) {
+ if (svg.element.childNodes.length === 1 && !svg.element.firstChild.getAttribute("x")) {
svg.element = svg.element.firstChild;
svg.removeable = false; svg.scale = scale;
}