Fix removal of common attributes if parent has non-whitespace text nodes

This commit is contained in:
JSCHILL1 2009-09-24 09:54:56 -05:00
parent 473e18500a
commit 7652fbc76c
6 changed files with 3823 additions and 787 deletions

View file

@ -5,4 +5,9 @@
<rect fill="#0F0" width="200" height="100" />
<circle fill="#0F0" stroke="0F0" cx="50" cy="50" r="20" />
</g>
<text>Hello
<tspan font-style="italic">World!</tspan>
Goodbye
<tspan font-style="italic">Cruel World!</tspan>
</text>
</svg>

Before

Width:  |  Height:  |  Size: 317 B

After

Width:  |  Height:  |  Size: 435 B

Before After
Before After