# \<br\>-tag inconsistency

**URL:** <https://forums.ankiweb.net/t/br-tag-inconsistency/47091>\
**Category:** Help\
**Created:** [July 15, 2024, 1:54pm UTC](https://forums.ankiweb.net/t/br-tag-inconsistency/47091 "2024-07-15T13:54:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duude](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/duude/32/21017_2.png) [@Duude](https://forums.ankiweb.net/u/Duude)\
**Post date:** [July 15, 2024, 1:54pm UTC](https://forums.ankiweb.net/t/br-tag-inconsistency/47091/1 "2024-07-15T13:54:23Z")

</div>

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:

```auto
<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?

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 15, 2024, 2:20pm UTC](https://forums.ankiweb.net/t/br-tag-inconsistency/47091/2 "2024-07-15T14:20:37Z")

</div>

![1000170857](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/4/6/46418bc3f130f7570a2f8019c2a58caafaf2c709.jpeg)

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [July 15, 2024, 3:14pm UTC](https://forums.ankiweb.net/t/br-tag-inconsistency/47091/3 "2024-07-15T15:14:35Z")

</div>

`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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [August 14, 2024, 3:14pm UTC](https://forums.ankiweb.net/t/br-tag-inconsistency/47091/4 "2024-08-14T15:14:50Z")

</div>

Closed on August 14, 2024, 3:14pm UTC

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