Open nathanal opened 2 years ago
Downstream report: https://gitlab.com/inkscape/extensions/-/issues/468
scour -i min_example_lost_clone
<use>
min_example_lost_clone
<?xml version="1.0" encoding="UTF-8"?> <svg version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <clipPath id="unusedclip"> <rect id="the_path" width="100" height="100"/> </clipPath> </defs> <use fill="red" width="100%" height="100%" xlink:href="#the_path"/> </svg>
<?xml version="1.0" encoding="UTF-8"?> <svg version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <use width="100%" height="100%" fill="red" xlink:href="#the_path"/> </svg>
pip3 install .
Downstream report: https://gitlab.com/inkscape/extensions/-/issues/468
Steps to Replicate
scour -i min_example_lost_clone
What happened?
<use>
element links to is deleted (because it is in a unused clone)What should have happened?
Input
min_example_lost_clone
Output
Version info
pip3 install .
(I edited the scour version to make sure I could see it was properly installed) (0609c596766ec98e4e2092b49bd03b802702ba1a)