Bug: html format altered when editing with AnkiDroid

This has been happening a lot lately.

Here’s a field and how it originally looked like on Anki Windows :

If I edit any field of that note with AnkiDroid, the field content is reformatted and it now looks very different on both versions of Anki with a lot of white spaces added :

I would be very thankful for this bug to be fixed.

Kind regards, Denis

‘Debug Info’ (Settings > About > ‘Copy debug info’) for Windows version:

Anki 25.02.5 (29192d15)  
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631
AnkiDroid 2.20.1
23 Dec 2024
(anki 24.11 / c47638ca)

Not a bug. To resolve the issue, on AnkiDroid, go to Settings > Advanced. Turn off Replace newlines with HTML.

What this setting does:

  1. Visually represent all <br> (linebreak HTML tag) as newlines in the editor.
  2. Turn any newlines into <br>, that is, actual linebreaks in your cards.

You probably have this turned on, and so everytime you edit and save a note on AnkiDroid, all the newlines are turned into extra <br> tags.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.