Only attempt to group elements that the content model allows to be children of a <g> when --create-groups is specified. (#98)
(before it could happen that e.g. `tspan` elements were grouped, which is invalid; fixes issues #96 and #97)
This commit is contained in:
parent
419f41cb48
commit
5844076258
4 changed files with 35 additions and 1 deletions
8
unittests/group-no-creation-tspan.svg
Normal file
8
unittests/group-no-creation-tspan.svg
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg height="100" width="100" xmlns="http://www.w3.org/2000/svg" >
|
||||
<text>
|
||||
<tspan x="10" y="30" style="font-family:sans-serif">text1</tspan>
|
||||
<tspan x="10" y="50" style="font-family:sans-serif">text2</tspan>
|
||||
<tspan x="10" y="70" style="font-family:sans-serif">text3</tspan>
|
||||
</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 350 B |
Loading…
Add table
Add a link
Reference in a new issue