<br>-tag inconsistency

I searched already Github and the forum for the same issue. But apparently no one found this yet, maybe it is even intended to work this way or I just didn’t find the entry of this issue.

Basically:
When creating cards on PC, there is the possibility to edit and create cards directly with the HTML-Editor. When you press “enter” in this HTML-Editor nothing happens in the main window. One would have to explicitly set

<br> tags to create a line break.
Even though it would visually look like a line break in the HTML-Editor, it does not look like that in the preview.

When I put several line breaks in the HTML-Editor (without using <br>), they will still be used as <br> tags in the AnkiDroid preview (not while reviewing! This only occurs while previewing the card!).

Example HTML-Editor:

<div>some text</div>





<div>some text2</div>

In preview it would look like this:

some text




some text2

In review it would look like this:

some text
some text2

Can anyone tell me if this is already a known issue or even intended behaviour?

3 Likes

settings —> advanced —> replace HTML with newlines is turned on?

This converts the newline to <br> tags when you tap on save. The preview is probably showing you what you will get upon saving.

It also converts all the <br> tags to newlines.

(I’m sending the draft; what the option does isn’t always clear)

edit: I edited the manual. Let’s see where the PR goes.

edit: closed the PR, apparently the setting will be gone or whatever.

2 Likes

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