scour/unittests/group-parent-merge2.svg
Niels Thykier e8e104d8b8
Add optimization that prunes nested <g>-tags
An optimization that prunes nested <g>-tags when they contain exactly
one <g> and nothing else (except whitespace nodes).  This looks a bit
like `removeNestedGroups` except it only touches <g> tags without
attributes (but can remove <g>-tags completely from a tree, whereas
this optimization always leaves at least one <g> tag behind).

Closes: #215
Signed-off-by: Niels Thykier <niels@thykier.net>
2020-05-18 06:09:02 +00:00

15 lines
489 B
XML