Steps to reproduce
In a note, on a new line, enter a tag name and immediately hit return, without typing a space at the end of the line.
E.g.:
#sometag
Expected result
I’d expect the line to consist of the tag I’d entered and nothing else, i.e. #sometag
.
Actual result
Frequently/almost always (but with some exceptions I haven’t quite worked out), the line actually consists of the tag I’ve entered and an extra space at the end of the line, i.e. #sometag
.
Environment
- Operating system: MacOS 10.14.6
- Obsidian version: 0.6.4
- Using custom CSS: no
Additional information
I had initially thought that this only happens when the tag appears on its own, but that’s not true - it just seems to happen (almost every time, but with some exceptions) when the line ends with a tag.
I could ameliorate this problem by (say) adding a pre-commit
hook to strip such trailing spaces automatically — but I really don’t want to do that of course, because in (at least some dialects of) markdown two trailing spaces have semantic content, namely a linebreak. As described in Feature Request 533 Obsidian’s behaviour around linebreaks is rather surprising, but I’m not ready to give up on the “standard” (such as it is) just yet.