yaml / yaml-test-suite

Comprehensive, language independent Test Suite for YAML
MIT License
172 stars 58 forks source link

L24T doublequote instead of literal in `emit.yaml` #134

Closed matajoh closed 2 months ago

matajoh commented 2 months ago

Why is the literal block scalar in L24T turned into a double quote in emit.yaml? I would think most emitters would keep it as a literal, so I'm curious why this choice was made.

# in.yaml
foo: |
  x
# emit.yaml
---
foo: "x\n \n"
jfudickar commented 2 months ago

As I wrote in my issue : switch over to the matrix chat. There you get faster answers.

I think that the emitter they are using for the tests is trying to make the output better readable, and has some "interesting" rules for that.

There are more examples for this.

matajoh commented 2 months ago

Closing issue for now.