Re: YAML Nit

Ingy dot Net <[email protected]> Sun, 15 Feb 2015 17:03:46 -0800
Newsgroups gmane.text.yaml.general
Message-ID <CAHJtQJ5di4MXGyLRExiOYjrUzrR2b5-OGAhjP0-3xdk6X1OqSw@mail.gmail.com>
Accidentally pressed send. Meant to end with:

Regardless of whether there is an actual newline at the end of the stream.

On Sun, Feb 15, 2015 at 5:01 PM, Ingy dot Net <[email protected]> wrote:

> 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