From 00be8a9d063605435e2c2263e761070177e8a852 Mon Sep 17 00:00:00 2001 From: Yoshikazu Nojima Date: Sat, 8 Apr 2023 16:00:59 +0900 Subject: [PATCH] Remove unnecessary line split from metadata yaml --- .../io/quarkus/docs/generation/YamlMetadataGenerator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/src/main/java/io/quarkus/docs/generation/YamlMetadataGenerator.java b/docs/src/main/java/io/quarkus/docs/generation/YamlMetadataGenerator.java index 79a46bdf22ddd..f7b6a52138f0f 100644 --- a/docs/src/main/java/io/quarkus/docs/generation/YamlMetadataGenerator.java +++ b/docs/src/main/java/io/quarkus/docs/generation/YamlMetadataGenerator.java @@ -108,7 +108,10 @@ public boolean test(String p) { } public void writeYamlFiles() throws StreamWriteException, DatabindException, IOException { - ObjectMapper om = new ObjectMapper(new YAMLFactory().enable(YAMLGenerator.Feature.MINIMIZE_QUOTES)); + ObjectMapper om = new ObjectMapper( + new YAMLFactory() + .enable(YAMLGenerator.Feature.MINIMIZE_QUOTES) + .disable(YAMLGenerator.Feature.SPLIT_LINES)); Map metadata = index.metadataByFile(); om.writeValue(targetDir.resolve("indexByType.yaml").toFile(), index);