Steps to reproduce
- Create a new empty note in Obsidian
- Copy the YAML from attachment 1 (in Additional information) and paste it in Obsidian into the new note
- Examine the content of the underlying .md file of the note in an external text editor - you should see the multiline YAML in correct original unchanged formatting, exactly as copied & pasted
- In Obsidian editor of the note, click the YAML property value to view the entire text of
sorting-spec
- In Obsidian editor of the note, try to edit the YAML property value to insert a single space in the beginning of the 3rd line ( # A comment here)
Did you follow the troubleshooting guide? [Y/N]
Yes
Expected result
- expected after step 4: the original indentation of the lines in multi-line text value of the YAML property to be retained.
- expected after step 5: actual space inserted instead of the strange
0xa0
character
Actual result
- after step 4: the original formatting (indentation levels) were removed (all leading spaces removed) and in result the multiline text value became flat-multiline (see attachment 2)
- after step 5: instead of space character the
0xa0
was insterted (and cursor jumped to a random location at the end of text of the property) - see attachment 3
Environment
SYSTEM INFO:
Obsidian version: v1.4.1
Installer version: v1.3.5
Operating system: Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 22.5.0
Login status: logged in
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
Attachment 1: original yaml
- the file: original yaml.md (206 Bytes)
- screenshot from SublimeText:
Attachment 2: yaml with destroyed (flattened) indentation of a multiline sorting-spec
text property (result of step 4)
- the file: flattened indentation.md (510 Bytes)
- screenshot from SublimeText:
Attachment 3: Yaml formatting and content broken after trying to insert a space in one of the lines
- the file: broken yaml.md (191 Bytes)
- screenshot from SublimeText to show the hex code
0xa0
of character inserted (instead of space) by the new Obsidian text property editor