When pressing enter on my keyboard, Obsidian won’t create a new line in any file, except for when:
The current line is empty,
The current line ends with a punctuation mark,
The file has an (empty) line below the current line.
This bug does occur for me when:
The current line ends with a word without punctuation mark and is the last line in the file.
The current line ends with a word without punctuation mark and is a heading. Even with an empty line below it, a new line won’t be created.
This occurs for me on my current vault with default theme and restricted mode on as well as on a brand new vault.
(I also noticed that on Windows (with the cursor at the end of the inline title) pressing enter once will take the cursor one line down, doesn’t work on Android. Instead I have to quickly double press enter for the same result. Not sure if this is related.)
Using Gboard 12.7.05.507749191-beta-arm64-v8a on a Google Pixel 7 Pro.
This issue happens when either “Auto correct” (“Correction automatique” in french) or “Spellchecking” (“Correcteur orthographique” in french) options are enabled in the Gboard settings.
When one of the two (or both) options are checked, you’ll see the word underlined as if the keyboard wanted to show alternatives to the word. That’s when the line return doesn’t work.
Obsidian is the only app I have which has this input bug.
Pixel 6, latest non-beta Gboard as of 21st of March.
My bet is that when @anjabeth will update Gboard, line returns will not work anymore.
Same issue, with non-beta Gboard. Started a few weeks ago. I’m currently working around it by putting an extra space at the end of each line, but that’s a bit annoying.
Same experience here. Pixel 4 with default Gboard 12.7.11.507749191-release-arm64-v8a
I tried turning off options and it seems to be present when any of these are active:
Autocorrect
Spellcheck
Grammar check
Suggestion strip
If you turn these all off you can get it to behave normally but this isn’t practical long term.
The issue isn’t present in other apps, egg the default Keep notes, so I’m guessing it’s something to do with either Obsidian’s smart commands or custom keyboard strip for markdown styles.