ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.54k stars 2.21k forks source link

[BUG]: line breaks insterted when note edited #14504

Closed AXiSource closed 10 months ago

AXiSource commented 1 year ago

Checked for duplicates?

What are the steps to reproduce this bug?

https://github.com/ankidroid/Anki-Android/assets/32098707/8eac51e8-61a2-4f05-82b4-f318a60fe588

Expected behaviour

No new line break added after simply opening and closing "Edit note" panel.

Actual behaviour

Line breaks added after simply opening and closing "Edit note" panel.

Debug info

AnkiDroid Version = 2.16.5 (953b9bd879269910ee962b520da9705336d8bc2d)

Android Version = 13

ProductFlavor = play

Manufacturer = samsung

Model = SM-M135F

Hardware = exynos850

Webview User Agent = Mozilla/5.0 (Linux; Android 13; SM-M135F Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/117.0.0.0 Mobile Safari/537.36

ACRA UUID = 7ab61a33-0623-4db8-9604-6b458ef84023

New schema = false

Scheduler = std2

Crash Reports Enabled = true

DatabaseV2 Enabled = true

(Optional) Anything else you want to share?

Field with html :

    se plaindre
\<br>porter plainte
\<br>dire
\<br>   raconter
\<br>accuser
\<br>recourir
\<br>

Research

david-allison commented 10 months ago

Should be handled by Settings -> Advanced -> Replace newlines with HTML

We'll have a better UX once we replace the note editor