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

Commit 8d11940

Browse files
authored
Make numbers always quoted (#37)
1 parent a7ce5c3 commit 8d11940

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
@@ -69,6 +69,7 @@ abstract class GeneratePluginDescription : DefaultTask() {
6969
val factory = YAMLFactory()
7070
.disable(YAMLGenerator.Feature.WRITE_DOC_START_MARKER)
7171
.enable(YAMLGenerator.Feature.MINIMIZE_QUOTES)
72+
.enable(YAMLGenerator.Feature.ALWAYS_QUOTE_NUMBERS_AS_STRINGS)
7273

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

0 commit comments

Comments
 (0)