adobe-research / svgObjectModelGenerator

SVG OM Generator & Writer
Apache License 2.0
49 stars 20 forks source link

Nested <tspan>s for nested styles #155

Closed DmitryBaranovskiy closed 9 years ago

DmitryBaranovskiy commented 9 years ago

In this example, I made a text “12345”, then selected “234” and made it bold, then selected “3” and made it red. Here is result: screen shot 2015-01-23 at 20 11 50 And here is what generated:

<text x="831px" y="110px" class="cls-16"><tspan x="831px" class="cls-17"><tspan class="cls-18">1</tspan><tspan class="cls-19">2</tspan><tspan class="cls-20">3</tspan><tspan class="cls-19">4</tspan><tspan class="cls-18">5</tspan></tspan></text>

Should be something like this:

<text x="831px" y="110px" class="cls-16"><tspan class="cls-18">1<tspan class="cls-19">2<tspan class="cls-20">3</tspan>4</tspan>5</tspan></text>
DmitryBaranovskiy commented 9 years ago

Closed with https://github.com/adobe-webplatform/svgObjectModelGenerator/issues/8