new text handling in SVG export seems to work

This commit is contained in:
hneemann 2018-02-18 21:25:37 +01:00
parent c0b17f8f00
commit bfaf89aa8a

View File

@ -32,7 +32,10 @@ public final class SVGFormatter {
Decorate d = (Decorate) text;
switch (d.getStyle()) {
case MATH:
return "<tspan style=\"font-style:italic\">" + format(d.getContent(), true) + "</tspan>";
if (mathMode)
return format(d.getContent(), true);
else
return "<tspan style=\"font-style:italic\">" + format(d.getContent(), true) + "</tspan>";
case OVERLINE:
return "<tspan style=\"text-decoration: overline\">" + format(d.getContent(), mathMode) + "</tspan>";
default: