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
- #327 added test for reported bug — committed to decorators-squad/eo-yaml by amihaiemil 4 years ago
- #327 run travis on all OS — committed to decorators-squad/eo-yaml by amihaiemil 4 years ago
- #327 fixed RtYamlPrinter.indent — committed to decorators-squad/eo-yaml by amihaiemil 4 years ago
- for #327 — committed to decorators-squad/eo-yaml by amihaiemil 4 years ago
- #327 ReadLiteralBlockScalar.value() fixed — committed to decorators-squad/eo-yaml by amihaiemil 4 years ago
@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
.gitattributesfile, see what I can fix.@amihaiemil the same problem using the command
mvn clean install -Pcheckstyle: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 😄