# Suggest a feature to render \`\<br/\>\` as real line breaking in edit page with HTML view in iOS Anki, like that in AnkiDroid?

**URL:** <https://forums.ankiweb.net/t/suggest-a-feature-to-render-br-as-real-line-breaking-in-edit-page-with-html-view-in-ios-anki-like-that-in-ankidroid/62304>\
**Category:** Suggestions\
**Created:** [June 7, 2025, 6:58am UTC](https://forums.ankiweb.net/t/suggest-a-feature-to-render-br-as-real-line-breaking-in-edit-page-with-html-view-in-ios-anki-like-that-in-ankidroid/62304 "2025-06-07T06:58:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [June 27, 2025, 9:32pm UTC](https://forums.ankiweb.net/t/suggest-a-feature-to-render-br-as-real-line-breaking-in-edit-page-with-html-view-in-ios-anki-like-that-in-ankidroid/62304/2 "2025-06-27T21:32:18Z")

</div>

It’s possible this is related to “Replace newlines with HTML” in AnkiDroid [Settings \> Advanced]. It’s hard to know whether to call this a feature, or a bug, or a workaround – I guess, beauty is in the eye of the beholder. 😅 For some users’ workflows, this setting gives them something they want – for some (especially when editing happens on multiple platforms), this causes unexpected gaps in their fields.

See if these posts and examples look familiar to you. Some of the suggestions there might help you find a way to get _more consistent_ behavior across platforms without any change to the code.

> [@HTML markup, formating lost in Ankidroid](https://forums.ankiweb.net/t/html-markup-formating-lost-in-ankidroid/40953/4):
>
> I think this might be a manifestation of this behavior - [Bug report: Newlines duplicated within fields - #6 by dae](https://forums.ankiweb.net/t/bug-report-newlines-duplicated-within-fields/40884/6) . You have all that “invisible” header information in your field (as opposed to your template), so if you edit the note in AnkiDroid, it is re-parsing the newlines as linebreaks \<br\>. Possible solutions for the time-being – Don’t edit notes with complex HTML in AnkiDroid Settings \> Advanced \> Workarounds \> Replace newlines \> toggle off

> [@\<br\>-tag inconsistency](https://forums.ankiweb.net/t/br-tag-inconsistency/47091):
>
> 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 l…

> <https://github.com/ankidroid/Anki-Android/issues/3304#issuecomment-1913483423>
>
> Originally reported on Google Code with ID 2408
> 
> \`\`\`
> AnkiDroid v2.3.2/Android 4.…3:
> 
> There is a field on some of my notes that contains HTML code as follows:
> 
> \---
> \<h2\>Headline\</h2\>
> 
> line 1\<br /\>
> line 2\<br /\>
> ...
> 
> \---
> 
> AnkiDroid displays this correctly.
> 
> But whenever I edit and save such a note, even if I do not touch that particular field,
> each (insignificant) newline gets turned into another explicit line break, so I end
> up with double-spaced output:
> 
> \---
> \<h2\>Headline\</h2\>
> 
> 
> 
> line 1
> 
> line 2
> 
> ...
> 
> \---
> 
> Expected behaviour:
> 
> 1. AnkiDroid should not modify a field I did not edit.
> 
> 2. AnkiDroid should not make insignificant whitespace read from existing content significant
> when editing. For me, it would be acceptable to have it stripped if that helps (i.e.
> to have the data above internally turned into 
> 
> "\<h2\>Headline\</h2\>line 1\</br\>line2\</br\>..."
> 
> before being fed to the edit box); see 1. though.
> \`\`\`
> 
> Reported by \`post@johannesrohrer.de\` on 2014-11-17 11:56:10

I think the work that is already underway to bring the editor interfaces closer together – like integrating the desktop editor into AnkiMobile and updating the AnkiDroid editor – will make these distinctions moot, or at least less noticeable.

If this isn’t related to what you’re seeing and I’ve missed the mark – it might help if you can show an example of a note you have where the HTML looks different on desktop vs. AnkiDroid vs. AnkiMobile – after it is saved and synced.

---

_[View the full topic](https://forums.ankiweb.net/t/suggest-a-feature-to-render-br-as-real-line-breaking-in-edit-page-with-html-view-in-ios-anki-like-that-in-ankidroid/62304)._
