Closed HSGamer closed 2 years ago
This is the intended behaviour since version 1.7.1, where list indentation is the same as YamlConfiguration.options().indent()
(2 by default).
Maybe an indentList
option can be added to YamlConfigurationOptions to allow this customization.
The default behaviour was not working properly, so the fix and the indentList
option has been released in 1.7.3. See #52 for further details.
Now your example is formatted by default as follows:
test-path:
- '1': test1
'2': test2
'3': test3
- '4': test1
'5': test2
'6': test3
- '7': test1
'8': test2
'9': test3
You can remove the extra indent to match your example expected output setting indentList
to 0.
My code: