Skip to content

Commit

Permalink
resource-task: do not split YAML into multiple lines (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
brig authored Dec 29, 2023
1 parent 0555f42 commit 4421ca5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ public String writeAsYaml(Object content) throws IOException {
Path tmpFile = fileService.createTempFile(RESOURCE_PREFIX, YAML_FILE_SUFFIX);
writeToFile(tmpFile, p -> {
try (OutputStream out = Files.newOutputStream(p)) {
createObjectMapper(new YAMLFactory()).writerWithDefaultPrettyPrinter()
createObjectMapper(new YAMLFactory().disable(YAMLGenerator.Feature.SPLIT_LINES))
.writerWithDefaultPrettyPrinter()
.writeValue(out, content);
}
});
Expand Down

0 comments on commit 4421ca5

Please sign in to comment.