eo-yaml: Problem with Windows Line Endings

Hi @amihaiemil

In the version 4.3.3 the return of the following code:

YamlMapping yaml  = Yaml.createYamlMappingBuilder()
     .add("spec", "1.2")
     .build();
System.out.println(yaml);

will be:

: 1.2

and it should be:

spec : 1.2

Is there something wrong with this release? Or am I missing something here?

Thank you

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 33 (33 by maintainers)

Commits related to this issue

Most upvoted comments

@ANadrowski sweet! I’ll release 4.3.5 now 😃

hey @amihaiemil all tests are green now, thank you 😄

ReadLiteralBlockScalar.value() has the same problem of bad trimming in the case of CRLF.

@ANadrowski Thank you for your help! Tomorrow I’ll look into the .gitattributes file, see what I can fix.

@amihaiemil the same problem using the command mvn clean install -Pcheckstyle:

teste

I am going to try to find a solution.

@ANadrowski I see. Line ending problems apparently… let me take the opportunity and setup a CI pipeline with Windows.

@ANadrowski If you have a unit test, it would also help to make a PR with it 😄