YAML Nit
Ingy dot Net <[email protected]> Sun, 15 Feb 2015 17:01:12 -0800
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <CAHJtQJ50vqH6EmCw-FVPiogf5OCg5dG2XZzUgb+70-BWirHWCQ@mail.gmail.com> |
I found what I would consider a bug in libyaml, but it may be a bug in the
spec as well.
If a YAML stream has no final line ending and the last node is a literal
block scalar, it parses as having no final newline.
ie this YAML: "foo: |\n bar"
loads as this JSON: {"foo": "bar"}
it should really load as this JSON: {"foo": "bar\n"}
foo: |
bar
should always parse to "bar\n", and:
foo: |-
bar
should always parse to "bar", regardless of the act
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core