# <br><br/>b converts to <br><br>b<br> in field

#### khonkhortisan

04 May, 2020 03:04 PM

<br><br/> with anything after it (removes the slash and) adds an extra <br> at the end, which isn't obvious when editing a field, but can show up on the card if the field isn't last in the template.

1. Posted by p4nix on 04 May, 2020 03:24 PM

Sometimes, with MathJax Anki will insert an invisible <br> too. I have troubles reproducing the behaviour though.

EDIT: pressing ctrl+m,m to introduce a mathjax  on an empty field will append an invisible <br>. This can be problematic with certain card templates.

2. Posted by addons_zz on 04 May, 2020 07:46 PM

3. Posted by p4nix on 04 May, 2020 07:51 PM

Can't speak for the others, but macOS: Anki 2.1.25

4. Posted by kelciour on 04 May, 2020 10:05 PM

It doesn't bother me, but maybe it's related.

If you type or copy-paste something in the empty field, select it and remove it, the field will be empty (""), in HTML it will be displayed as <br>, and if you press Ctrl-Z to undo the changes, the field will contain extra empty new line (<br>) at the start of the field.

5. Support Staff Posted by Damien Elmes on 05 May, 2020 05:38 AM

- Anki inserts a <br> when the field is empty so that the field box doesn't shrink in size.
- The extra added <br> appears to be caused by the HTML parsing library (beautifulsoup).

6. Posted by khonkhortisan on 05 May, 2020 01:51 PM

I'm on win10 Anki 2.1.25 and I can do all three
<br><br/>b→<br><br>b<br>
ctrl+m, m→<br>
asdf ctrl+a del ctrl-z→<br>asdf

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

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 03 Jan, 2021 03:01 AM syncing failed 01 Nov, 2020 05:11 PM rated:30:1 25 Sep, 2020 03:57 PM Also Anki on my phone. ALL MY PICTURES ARE GONE 25 Sep, 2020 10:58 AM Error and can't sync Anki's desktop? 22 Sep, 2020 07:12 PM How to image occlusion enhanced on windows/PC

## Recent Articles

 Support has moved to forums.ankiweb.net "Error establishing a secure connection." when syncing Third party Linux packages and source builds are not supported "DatabaseError: database disk image is malformed" when syncing Media files may take time to sync