I'm trying to create a YAML file from beans. In which one of the fields has more than 80 chars. When I write the bean to YAML file using objectMapper, those values were printed in two different lines.
- code: abcd1234
label-en_US: Lorem Ipsum is simply dummied text of the printing and typesetting
industry --> this line should not be here
ObjectMapper mapper = new ObjectMapper(new YAMLFactory().enable(MINIMIZE_QUOTES));
mapper.writeValue(Paths.get("path/to/file").toFile(), getData());