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

Content of SVG elements is ignored in determining if the card is unique #3585

Open
dae opened this issue Nov 17, 2024 · 0 comments
Open

Content of SVG elements is ignored in determining if the card is unique #3585

dae opened this issue Nov 17, 2024 · 0 comments

Comments

@dae
Copy link
Member

dae commented Nov 17, 2024

It seems that Anki (I’m on Version ⁨23.12.1 (1a1d4d5)⁩, Python 3.9.15 Qt 6.6.1 PyQt 6.6.1), SVG elements are ignored for determining if the card is empty or unique.
To reproduce, try to create a card with Front


This is happening because we strip HTML from the field prior to determining if it's empty, as invisible br/b/etc tags would otherwise cause a visually-empty field to be accepted.

Originally reported on https://forums.ankiweb.net/t/content-of-svg-elements-is-ignored-in-determining-if-the-card-is-unique/51915

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

No branches or pull requests

1 participant