ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.4k stars 2.18k forks source link

[BUG]: Nested cloze passages improperly rendered #16851

Open Hysterelius opened 1 month ago

Hysterelius commented 1 month ago

Checked for duplicates?

Does it also happen in the desktop version?

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) image

Actual behaviour

When you are looking one level below, i.e., looking at c1 card when it goes up to c2 you get this: image

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

welcome[bot] commented 1 month ago

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

peyman79 commented 2 weeks ago

I'd like to work on this issue