Tabs instead of spaces inside the YML frontmatter

Steps to reproduce

Create a YML frontmatter and try to indent something. Obsidian will use a Tab instead of Spaces even though the option for Tabs is disabled in the settings.

---
def foo():
    # what it enters
	bar = baz()
    # what it should enter
    biz = zap()
---
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse molestie leo suscipit auctor fermentum. Maecenas sit amet tempus ex. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Expected result

Obsidian should enter 4 spaces.

Actual result

It enters a space.
Screenshot from 2020-08-31 20-44-03

Example note.
playground.zip (521 Bytes)

Environment

  • Operating system:
    Ubuntu 20.04
  • Obsidian version:
    0.8.8

The space\tab problem appears elsewhere, it’s something that we have to fix with codemirror.

The YAML block is not to be used directly by users for storing content. It’ll be used for pluging development in the future.

1 Like

I’m fine with not using the YAML block, I already found a different way for myself, but couldn’t find a thread about the space/tab problem.
Can you point me to it?

Also curious about where this other bug is being tracked (if at all still). I’m experiencing this as well.