YAML Property editor removes original indentation levels from a multiline-text value

Steps to reproduce

  1. Create a new empty note in Obsidian
  2. Copy the YAML from attachment 1 (in Additional information) and paste it in Obsidian into the new note
  3. 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
  4. In Obsidian editor of the note, click the YAML property value to view the entire text of sorting-spec
  5. 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]


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


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


Additional information

Attachment 1: original yaml

Attachment 2: yaml with destroyed (flattened) indentation of a multiline sorting-spec text property (result of step 4)

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
1 Like

We will investigate this

Thanks, will be fixed in the next build!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.