If I make a note by wrapping existing text with brackets, and the text contains two spaces between the word, then the extra spaces are stripped in the title of the note, within Obsidian. But the filename still has the extra spaces. This leads to broken links.
Steps to reproduce
- Type text in a note that contains more than one space between words, e.g.:
This is a note title with five extra☐☐☐☐☐spaces between the words
- Wrap the phrase in double brackets, creating a new note.
- The note title and the file name both have 5 spaces
- The note title and the file name both have one space between each word
The spaces are stripped from the title within Obsidian but unchanged in the filename (screenshot from system explorer):
Although the original link (with spaces showing) still works…
[[This is a note title with five extra☐☐☐☐☐spaces between the words]]
…the page it connects to has a title that doesn’t show the spaces (in Obsidian).
This can lead to conflicts. For example, if I I cut and paste the text of the title from the Obsidian page, the text that is pasted doesn’t contain the spaces, so that if I make a new link on the basis of the text copied from the title, the link is broken.
This link doesn’t work:
[[This is a note title with five extra spaces between the words]]
Potential bug fixes:
- Leave the spacing in the title, so that it matches the file name
- Retain the hidden spacing from the title when copy-and-pasting from the title
- Change the file name automatically, to eliminate extra spaces (effectively treating multiple spaces as invalid strings in filenames)
- Operating system:
macOS 13.2.3 Big Sur
- Obsidian version: