Pressing enter adds a space instead of a line break when adding cards

[I’m repeating some of what others have posted, because I already wrote it yesterday, when I didn’t have time to finish editing my reply, but it doesn’t seem worth deleting.]

Those  's are definitely causing your mid-word-line-break issue. That is the HTML code for a “non-breaking space”. When every space in the sentence is one of those, the HTML treats the sentence as one continuous word. Since it’s got to break somewhere, and it can’t break at the spaces, it breaks wherever else it needs to keep the word in the space allowed.


So we’ve got the “what is happening” – but the “why it’s happening” might have to remain a bit of a mystery for now. Let’s jump over that to “what to do about it.”

How to fix existing notes – Try using Find and Replace to replace   with a regular space. (Unless you think you have  's that you need to keep somewhere?)

How to stop it while it’s happening (without closing the Add window) – Cut the contents of the field, and then use Shift-Ctrl-V to paste it back into the field without formatting. I don’t know if that will cause the issue to go away for a while, or just fix that one field.

I would be interested to know what is happening in the HTML view when you’re doing that too, but it sounds similar to another issue where it’s hard to remove formatting from an empty field – Bold/italic/underline sticks at start of note.

“Did take longer” and “tended to occur” are hard to quantify – especially when we’re already talking about an intermittent issue. There might be too many variables and too much chance of observation/confirmation bias to get a good read on that. Unless it’s overwhelmingly longer, like 3 days instead of 10 minutes?

That the issue is switching between fields hints that it might be the toolkit to blame – as does the fact that closing/reopening the Add window fixes it – but this is probably good background information for anyone looking for a fix.

If you’ve been able to reproduce it, is that on version 25.02? Linux, not Windows, right?

Any patterns anyone can find in when it is happening will certainly help get it fixed! [That is, if it’s possible to fix from Anki’s end, and not a toolkit bug that we have to tolerate.]