Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing a note turns insignificant HTML newlines to br tags #15365

Closed
user1823 opened this issue Jan 30, 2024 · 1 comment
Closed

Editing a note turns insignificant HTML newlines to br tags #15365

user1823 opened this issue Jan 30, 2024 · 1 comment

Comments

@user1823
Copy link
Contributor

user1823 commented Jan 30, 2024

Example:

Desktop:

AnkiDroid: (displays incorrectly)

After syncing to Desktop without making any edit to the note on AnkiDroid, no change happens in the HTML.

But after making a small edit

The linebreak in the HTML gets replaced by a <br> tag.
image

Turning off the option added in #7692 solves the issue in the sense that the HTML is no longer altered after editing the card in AnkiDroid. However, the card still displays incorrectly on AnkiDroid (same as the second image above).

Also, this is a suboptimal solution because it takes the note editor one step away from a WYSIWYG editor (because all the <br> tags become visible).

Also, I think that the title of the preference is misleading. I think that it should be "Replace HTML with newlines" because it replaces <br> tags with newlines when enabled.

Originally posted by @user1823 in #3304 (comment)

Debug Info:

AnkiDroid 2.17 alpha 17
@david-allison
Copy link
Member

Let's move this back to #3304, thanks!

Duplicate of #3304

@david-allison david-allison closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants