Anki-Android
Anki-Android copied to clipboard
[BUG]: Nested cloze passages improperly rendered
Checked for duplicates?
- [X] This issue is not a duplicate
Does it also happen in the desktop version?
- [x] This bug does not occur in the latest version of Anki
What are the steps to reproduce this bug?
Create a new cloze note with this text:
Whereas {{c2::{{c1::recognition}}}} of the inherent dignity and of the equal and inalienable {{c1::rights}}
Use this cloze template from the docs for the back of the cloze tag:
{{cloze:Text}}<br>
{{type:cloze:Text}}
{{Back Extra}}
Expected behaviour
When text is inputed on the front of the card it should display the difference between text: (this is looking at the c2 level)
Actual behaviour
When you are looking one level below, i.e., looking at c1 card when it goes up to c2 you get this:
I think it is due to it taking the wrong side of the :: as it should take the recognition bit not the {{c1 bit.
Debug info
AnkiDroid Version = 2.18.4
Backend Version = 0.1.38-anki24.04.1
Android Version = 14 (SDK 34)
ProductFlavor = play
FSRS Enabled = false
Crash Reports Enabled = true
(Optional) Anything else you want to share?
Thank you for this great tool! This just a small issue
Research
- [X] I am reporting a bug specific to AnkiDroid (Android app)
- [X] I have checked the manual and the FAQ and could not find a solution to my issue
- [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing
I'd like to work on this issue
I don't see this in the latest beta, 2.19beta5.
I tested this on the latest version of Anki (2.19), I still see the issue occurring.
I have added more details on how to replicate below:
- Create a new card on an Anki deck with the text:
Whereas {{c2::{{c1::recognition}}}} of the inherent dignity and of the equal and inalienable {{c1::rights}}
- Ensure to use this cloze template for the card from the docs
- Study the deck with the card in it, when you get to the second card (c2) card, you should see
{{c1appearing in the answer field
I'm also having this issue (as of the most recent AnkiDroid from the Play Store, mid/late December) — although steps have been given, it's still marked as "cannot replicate". So to facilitate the issue being replicated, attached is a very simple apkg file that replicates it for me (you'll have to rename from .zip to .apkg because Github doesn't allow .apkg files to be uploaded).
It consists of one note with a single field generating 3 cards, the note field is simply:
{{c1::{{c2::a}} b {{c3::c}}}}
The c2 and c3 generated cards work normally, while the c1 card with the encapsulating cloze does not render correctly. The card template for both the front and back cards is:
{{cloze:Text}}
<hr>
{{type:cloze:Text}}
I hope this helps!