If a list is un-done, then the text gets appended after the list
Steps to Reproduce
- Click Add.
- Type a random string into a field, like
Hello World. - Press Ctrl+Z to undo.
- The list persists and the now re-done entry gets appended (html becomes
<ol><li>Hello World</li></ol>Hello World).
Expected Behavior
The list should be replaced by the previous content of the field, i.e. the content that is now re-done.
Actual Behavior
The list stays and the previous content gets appended.
Versions
It goes back to at least 24.11 (87ccd24e), but is still present with the current build from main from today: Anki 25.05 (d3d6bd8ce006f178e2271fd8d317fdc8832095df)
_
Anki 25.05 (8fc822a6) (src) (ao) → My git is at d3d6bd8ce006f178e2271fd8d317fdc8832095df, not sure why Anki reports the wrong commit. Edit: Deleting out/buildhash solved the incorrect hash issue. No idea why that was neccessary, though. Edit 2: Here's why that was neccessary.
Originially reported in https://forums.ankiweb.net/t/anki-25-05-beta/59710/52?u=anon_0000.
Hi @dae , I'd like to start working on this issue. Is anyone currently looking into it?
As far as I know noone is currently working on this.
Hello! I would like to take a look at this issue, is anyone working on it now?
Unless @fcolona returned to it, noone is working on this issue yet.