Skip to content

Commit

Permalink
Remove unnecessary line split from metadata yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ynojima committed Apr 8, 2023
1 parent 0100232 commit 00be8a9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, DocMetadata> metadata = index.metadataByFile();

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

0 comments on commit 00be8a9

Please sign in to comment.