Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove unused <use> elements when deleting empty symbols (issue 1765). #2051

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

johnkenny54
Copy link
Contributor

When removeEmptyContainers removes a symbol referenced by <use>, the stray <use>s were being left in the SVG, though they no longer reference a valid element. This PR modifies removeEmptyContainers to also remove the dangling <use> elements.

Closes #1765, closes #1618, closes #1194.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant