Apply a patch submitted by Jan Thor for the feature described in bug 492277, "Remove only auto generated id's".

Adds the command-line options --protect-ids-noninkscape, --protect-ids-list and --protect-ids-prefix, and three options to the Inkscape Save as Optimized SVG dialog.
This commit is contained in:
Louis Simard 2011-02-21 23:05:52 -05:00
parent 48776271d7
commit fcbb2b0332
2 changed files with 53 additions and 4 deletions

11
unittests/protection.svg Normal file
View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path id="path1" d="m1,1z"/>
<path id="path2" d="m1,1z"/>
<path id="path3" d="m1,1z"/>
<path id="path4" d="m1,1z"/>
<path id="p:mypath1" d="m1,1z"/>
<path id="p_mypath1" d="m1,1z"/>
<path id="otherpath" d="m1,1z"/>
<use xlink:href="#path1"/>
</svg>

After

Width:  |  Height:  |  Size: 403 B