Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

[BUG]: Card does not display all fields in the normal section where you rep, only in the card viewer from browser mode.

Open ClaytonRefold opened this issue 1 year ago • 6 comments

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?

  1. Download this deck
  2. Unpack it into AnkiDroid
  3. Go to the first card
  4. Flip the card
  5. Go to the card browser
  6. Look at the preview

Expected behaviour

The back of the card should have additional fields.

Actual behaviour

The back of the card is missing fields.

https://github.com/user-attachments/assets/dd565f29-38c5-4814-903b-3091cbce111e

Debug info

Occured on most recent version of Anki droid on multiple Android devices.

(Optional) Anything else you want to share?

I posted about the bug and discussed it with David A in discord.

Discord user jorge_baboy

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)

ClaytonRefold avatar Jul 19 '24 23:07 ClaytonRefold

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

welcome[bot] avatar Jul 19 '24 23:07 welcome[bot]

Found a workaround. Apparently the issue is caused because there's a script tag in a div. Everything after the script tag gets ignored by AnkiDroid.

Fixed by moving all scripts to the end of the file.

toppsdown avatar Aug 10 '24 01:08 toppsdown

Found a workaround. Apparently the issue is caused because there's a script tag in a div. Everything after the script tag gets ignored by AnkiDroid.

Fixed by moving all scripts to the end of the file.

i tried it but it dosen't work, my scripts are in the end of the front and the back whithout div tag. Does it work for you @ClaytonRefold ?

MrPropre84700 avatar Aug 10 '24 07:08 MrPropre84700

In my case ankidroid doesn't recognize an id tag

MrPropre84700 avatar Aug 10 '24 07:08 MrPropre84700

Hey,

I found what is the problem but not the solution. Ankidroid does not recognize the tag "id" which is used in the back and re-used in the front. Yet on computer or in ankidroid prewiew it works.

An example : Here is a script to write the answer and display it on the back:

FRONT :

(here i capture the id value of "typeanwser" for the back)

BACK:

but it's workd on review mode ? it's strange.

MrPropre84700 avatar Aug 11 '24 13:08 MrPropre84700

Will be fixed together with #14302

BrayanDSO avatar Sep 22 '24 12:09 BrayanDSO