libyaml can't parse top level scalar block

Issue #11 new
KengoK
created an issue

libyaml can parse this:

abc: 123
---
XXX
YYY
ZZZ

but can't this:

abc: 123
--- |
XXX
YYY
ZZZ

I posted the detail to ML and created a ticket before, but the ticket is gone somewhere...

Comments (2)

  1. KengoK reporter

    I tested like this.

    $ cat test.sh
    #! /bin/sh
    
    cat <<EOF > test.yml
    abc: 123
    ---
    XXX
    YYY
    ZZZ
    EOF
    
    ./tests/run-parser test.yml
    
    cat <<EOF > test.yml
    abc: 123
    --- |
    XXX
    YYY
    ZZZ
    EOF
    
    ./tests/run-parser test.yml
    
    $ ./test.sh
    [1] Parsing 'test.yml': SUCCESS (11 events)
    [1] Parsing 'test.yml': FAILURE (10 events)
    
  2. Log in to comment