With the setting "show indentation guides" on, rendering is wrong at 4 spaces or one tab

Once you’ve done the above, delete everything above this line.

Steps to reproduce

  • open a sandbox vault
  • make a bulleted list
  • tab or indent an item 4 spaces
  • then toggle the show indentation guides off and the correct rendering of spaces or tabs shows up

second problem - tab is not rendered as 4 spaces even with show indentation guides off

  • open a sandbox vault
  • turn off “show indentation guides”
  • tab an item once
  • it shows up as 8 spaces when the setting is 4

Did you follow the troubleshooting guide? [Y/N]

y

Expected result

  • normal indentation. visual appearance of 4 spaces

Actual result

  • visual appearance of 8 spaces

Environment

SYSTEM INFO:
Obsidian version: v1.8.4
Installer version: v1.8.4
Operating system: Windows 11 Home 10.0.26100
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

with show indentation guides on, indentation using tab enabled(the default settings)

image

  • my vault settings also seemed to change on their own which made this problem more noticeable. when I originally opened the settings in my vault, the indent visual width was set to 8. Because of this problem that actually showed as 16 spaces.

“show indentation guides” and “indent using tabs” turned off

image

“indent using tabs” turned on. “show indentation guides” turned off

image

I can reproduce a problem but I am not sure is the one you are reporting.

Disable indent guides, set to indent with (4) spaces. Use visual length of X. We are not honoring the visual length of X.

Indenting with tabs (not 4 spaces) works fine in all cases.

Now, the visual length is font-dependent and depends also on the first char of the list and if indentation guides are present.

I added a screenshot and updated the description of each to try to be more clear what the settings are. I could see that “show indentation guides” could be intended to be made in the way that it is where there is a doubling of the rendering of space from what I would expect because of the indentation guide present.

Even with “show indentation guides” off, a tab still renders as 8 spaces when set to 4. That seems to be more clearly a bug.