Skip to content
This repository was archived by the owner on Dec 7, 2024. It is now read-only.

Commit 6df3f8b

Browse files
committed
Restore array indentation
Seems like the INDENT_ARRAYS_WITH_INDICATOR (compared to plain INDENT_ARRAYS) option doesn't have the problem that it generates array: - aa: bb but rather array: - aa: bb as expected. But also the Paper dependency format looks different now so there is nothing weird generated anyway.
1 parent 8d11940 commit 6df3f8b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/kotlin/net/minecrell/pluginyml/GeneratePluginDescription.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ abstract class GeneratePluginDescription : DefaultTask() {
7070
.disable(YAMLGenerator.Feature.WRITE_DOC_START_MARKER)
7171
.enable(YAMLGenerator.Feature.MINIMIZE_QUOTES)
7272
.enable(YAMLGenerator.Feature.ALWAYS_QUOTE_NUMBERS_AS_STRINGS)
73+
.enable(YAMLGenerator.Feature.INDENT_ARRAYS_WITH_INDICATOR)
7374

7475
val module = SimpleModule()
7576
@Suppress("UNCHECKED_CAST") // Too stupid to figure out the generics here...

0 commit comments

Comments
 (0)