Invalid Frontmatter YAML when using Tabs

Steps to reproduce

If you use tabs to build frontmatter YAML everything looks properly formatted, but because YAML is space delimited and not tab the internal parser considers this an error.

---
ingredients:
  eggs: 2
  bacon: 2

Expected result

I would expect the tabs to be converted to spaces when editing the front matter. This may just be because I’m so used to all my editors converting tabs to spaces.

Actual result

Invalid YAML. Would be great if there was an actual error presented. I had to figure this out from trial and error. Any prior work on this I can help with?

Environment

  • Operating system: MacOS Montery 12.4
  • Debug info:
SYSTEM INFO:
	Obsidian version: v0.14.15
	Installer version: v0.14.15
	Operating system: Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 21.5.0
	Login status: logged in
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Legacy editor: on
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Safe mode: off
	Plugins installed: 1
	Plugins enabled: 1
		1: Dataview

Additional information

This sound like a good FR. Please, open one.

In Settings > Editor, turn off Use tabs. There’s a setting below that to choose how many spaces to insert.

(This doesn’t help people who generally prefer tabs, but you said you’re used to spaces.)