Skip to content

Commit

Permalink
disable(YAMLGenerator.Feature.SPLIT_LINES)
Browse files Browse the repository at this point in the history
  • Loading branch information
brig authored Mar 24, 2024
1 parent 768d46a commit 9140bf0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ private static Object formatMessage(String format, Object msg) {
}

private static ObjectMapper createYamlObjectMapper() {
return defaultObjectMapper(new YAMLFactory().disable(YAMLGenerator.Feature.WRITE_DOC_START_MARKER));
return defaultObjectMapper(new YAMLFactory()
.disable(YAMLGenerator.Feature.WRITE_DOC_START_MARKER)
.disable(YAMLGenerator.Feature.SPLIT_LINES));
}

private static ObjectMapper defaultObjectMapper(JsonFactory jf) {
Expand Down

0 comments on commit 9140bf0

Please sign in to comment.