I use Affinity Designer for creating my svg-files.
Unfortunately this tool stores all existing groups in the svg export, also of parts that I do not want to export.
This leads to lots of empty groups. I want to remove all those empty groups (recursively).
This works fine in most cases. In some cases, the groups have a transform attribute. Those groups remain in the file.
You can find a lot of small svg files that come with this issue here in my repository. Feel free to use them for testing.
This issue might be related to #20 but comes with a slightly different flavour. Stripping the group ID does not help here :)
The fact that --indent=none and --no-line-breaks have no effects have been reported in #297
I use Affinity Designer for creating my svg-files. Unfortunately this tool stores all existing groups in the svg export, also of parts that I do not want to export. This leads to lots of empty groups. I want to remove all those empty groups (recursively).
This works fine in most cases. In some cases, the groups have a transform attribute. Those groups remain in the file.
Input:
Output:
scour-call:
You can find a lot of small svg files that come with this issue here in my repository. Feel free to use them for testing.
This issue might be related to #20 but comes with a slightly different flavour. Stripping the group ID does not help here :) The fact that
--indent=none
and--no-line-breaks
have no effects have been reported in #297I use scour 0.38.2 with Python 3.10.4