xbox-board-re icon indicating copy to clipboard operation
xbox-board-re copied to clipboard

Don't regenerate image id when unnecessary

Open thrimbor opened this issue 2 years ago • 0 comments

When working on #14 I noticed that the script keeps changing the id attribute of image objects, even when the id was already there and no change was made. I manually reverted the changes there, but took a look today why this happens. simplify.py removes the attribute from images because id is not listed in allowed_attrs, but then notices that there is no id and generates a new one. This change adds id to allowed_attrs, so this doesn't happen anymore.

thrimbor avatar Mar 19 '22 12:03 thrimbor