anki-plugins icon indicating copy to clipboard operation
anki-plugins copied to clipboard

Problems with many cloze deletions

Open AlejandroEN opened this issue 2 years ago • 4 comments

Hi!

First of all, thank you very much for developing this fantastic tool, it's a quite useful add-on and now I can't imagine studying without it.

The problem happens when I have more than 1 cloze deletion: my review UI starts to show the braces of each cloze deletion I've made.

This is what it looks like:

image

I hope you can fix it.

Thanks.

AlejandroEN avatar Aug 25 '21 03:08 AlejandroEN

Hi!

That's odd. Guessing I'd say that maybe some hidden character on the card is breaking it, but I need to test. Could you create a very small deck with this problematic card, and attach it here?

ssricardo avatar Aug 25 '21 07:08 ssricardo

Sure.

Thanks for the help.

Selected Notes.zip

AlejandroEN avatar Aug 25 '21 17:08 AlejandroEN

I have the exact same problem. I managed to develop a simple example. Just put 18 clozes {{c1::Teste}} in a card. Then change any one of the c1's to c2. You will see that the last cloze shows the braces.

The number of c2 clozes does nothing (unless it's zero), and the position of the c2 tag is irrelevant. It can even be after the last c1 cloze. Also, more c1 clozes will yield more braces.

It's not a special char problem, it's probably a magic number somewhere. image

selflect11 avatar Sep 22 '21 20:09 selflect11

I have the same problem. Screenshot 2022-03-04 at 01 38 40

EugeneTarasenko avatar Mar 04 '22 11:03 EugeneTarasenko