Quirk in editing cloze deletion

S Horowitz's Avatar

S Horowitz

03 Oct, 2017 03:31 PM

I have many cards with cloze deletions with multiple lines of text included in the deletion. Sometimes all of the lines show bolded blue on the back of the card, sometimes just the first line. I can't seem to understand why it does this, nor can see any difference in the HTML editor between the cards. I would like to be able to control how the cards display.
Any help is appreciated.

  1. Support Staff 1 Posted by Damien Elmes on 04 Oct, 2017 10:02 AM

    Damien Elmes's Avatar

    Hi Seth,

    This is caused by the div tags denoting newlines being partially inside and outside the cloze. I'm afraid there's no automatic solution to fix this at the moment, but when creating new cards if you press shift+enter to go to the next line, it will insert a br tag instead which should not cause problems with cloze deletion.

  2. 2 Posted by S Horowitz on 04 Oct, 2017 10:32 AM

    S Horowitz's Avatar

    That seems to make the entire cloze bolded blue on the back.
    Is there a way (even within the html editor would be helpful) to make only
    the first line bolded blue and not the rest?

  3. Support Staff 3 Posted by Damien Elmes on 04 Oct, 2017 10:39 AM

    Damien Elmes's Avatar

    Hi Seth,

    The expected behaviour is for all clozed text to appear in blue. When the div tags are partly cut off, it may result in only a single line being displayed in blue, but this is a bug rather than an expected feature :-)

  4. 4 Posted by S Horowitz on 04 Oct, 2017 12:06 PM

    S Horowitz's Avatar

    FYI - I discovered that if I format the font color for the whole card, only
    the first line changes to bolded blue. So my workaround is to change the
    color of the font to almost black (a cinch with your quick color changing
    add on) for the card.
    This type of display is important (for me) when creating overlapping closes.

  5. Support Staff 5 Posted by Damien Elmes on 05 Oct, 2017 02:50 AM

    Damien Elmes's Avatar

    Hi Seth,

    Glad to hear you've found a workaround; I will keep an eye on demand for such a feature in the future.

  6. 6 Posted by S Horowitz on 12 Nov, 2019 09:24 PM

    S Horowitz's Avatar

    Hello, I am a long time ANKI user and create decks in Hebrew for Hebrew
    speakers. There are two things that I see that can be improved:

    1) While ANKI supports right to left text, the punctuation does not display
    properly on the cards during reveiws, with any punctuation at the end of a
    sentence appearing instead at the beginning of the line.

    2) While ANKI can be installed in Hebrew, only a portion of the options
    show in Hebrew with the majority still appearing in English.

    I myself do not have programming experience to be able to directly help in
    coding these fixes, but perhaps I can be of help on the second issue, by
    making a list of the remaining English options and their Hebrew
    translations. If this would be of help, please let me know, and I will try
    work on it.

    Seth Horowitz

  7. Support Staff 7 Posted by Damien Elmes on 12 Nov, 2019 09:46 PM

    Damien Elmes's Avatar

    Did you modify your template? https://apps.ankiweb.net/docs/manual.html#rtl-(right-to-left)-text

    Translations are contributed by Anki users - if you would like to help out, please see https://apps.ankiweb.net/docs/manual.html#translating-anki

Comments are closed, but you can start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac