YAML indentation is incorrect when trying to indent a list containing objects.
test.yaml filelist: - element1: foo: bar - element2: foo: bar
Indent the file using =G
Result
list: - element1: foo: bar - element2: foo: bar
The foo: bar lines are incorrectly indented, they miss one indentation level as they belong under the element 1 & 2 objects.
I expect the content to stay as is since the indentation is correct.
9.1.1908
Operation system: Linux x1 6.6.107-1-MANJARO #1 SMP PREEMPT_DYNAMIC Fri Sep 19 17:32:57 UTC 2025 x86_64 GNU/Linux
Terminal: xfce4-terminal 1.1.5 (Xfce 4.20)
Value of $TERM: xterm-256color
Shell: GNU bash, version 5.3.3(1)-release (x86_64-pc-linux-gnu)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()