Sorry for the delay in replying… This is really interesting, because it’s all about the autocomplete menu, which I hadn’t realised at all.
I was initially confused by your point about it entering a space “so you can start entering the next tag or word”, because to me, if I’ve hit return, I want a newline, so why would anyone want that? But then I realised that when a user chooses an existing tag from the autocomplete menu, that is indeed a helpful/sensible/conventional behaviour. OK.
However: I’m not doing that; I’m just typing a hashtag in full and hitting enter, and wanting Obsidian to just interpret that as me typing as normal. The problem is that if the hashtag I’m typing already exists, Obsidian pops up the autocomplete menu, and when I’ve typed the whole thing I now have an autocomplete menu with only one item in it, and hitting return is interpreted as choosing that one item - even though I didn’t interact with that menu at all. Notice that in my original bug report I didn’t even mention the autocomplete menu because I hadn’t even spotted that this was what was happening.
Also worth nothing: if I enter an entirely new hashtag, there’s no autocomplete menu by the time I’ve entered the whole hashtag, and Obsidian behaves as I’d expect and just enters a newline with no space.
So it seems to me there are two different modes here; “just typing a hashtag” and “typing a hashtag but then using the autocomplete menu”.
Perhaps the helpful space could only be entered in the second case, i.e. if the user actually interacted with the autocomplete menu using their arrow keys or by clicking on an item? That’s what happens now with completely new hashtags.
Another thought: what if the helpful space was only entered if the autocomplete menu had more than one item in it when the user hits return? As way to check the condition “user typed entire hashtag”, that’s possibly easier than tracking “did they hit the up/down arrows or click on the menu”, I guess.
And I get it if you don’t want to make these changes: I realise this is quite nit-picky and a corner case; but as you can see it was quite surprising to me at least.
Thanks!