Skip to content

Commit 4799f2a

Browse files
authored
Merge pull request #32501 from ynojima/remove-unnecessary-line-split-from-metadata-yaml
Remove unnecessary line split from metadata yaml
2 parents 0100232 + 00be8a9 commit 4799f2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/src/main/java/io/quarkus/docs/generation/YamlMetadataGenerator.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ public boolean test(String p) {
108108
}
109109

110110
public void writeYamlFiles() throws StreamWriteException, DatabindException, IOException {
111-
ObjectMapper om = new ObjectMapper(new YAMLFactory().enable(YAMLGenerator.Feature.MINIMIZE_QUOTES));
111+
ObjectMapper om = new ObjectMapper(
112+
new YAMLFactory()
113+
.enable(YAMLGenerator.Feature.MINIMIZE_QUOTES)
114+
.disable(YAMLGenerator.Feature.SPLIT_LINES));
112115
Map<String, DocMetadata> metadata = index.metadataByFile();
113116

114117
om.writeValue(targetDir.resolve("indexByType.yaml").toFile(), index);

0 commit comments

Comments
 (0)