From 2307a753b2cf08d2a971c829ce41ca86b2af63e1 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 2 Dec 2015 14:58:53 -0500 Subject: [PATCH] Fix problem with mtext losing initial spacing when the mtext containe only one printable character. Issue #1316. --- unpacked/jax/output/SVG/jax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index 912a489bc..021a37c2b 100644 --- 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; }