MartinKoch123 / yaml

MATLAB YAML parser and emitter based on SnakeYAML
MIT License
22 stars 7 forks source link

Unusual line continuation behaviour with yaml.Null #3

Closed billtubbs closed 2 years ago

billtubbs commented 2 years ago

This is fairly minor, but the line break and continuation seems a little premature for an array of Nulls:

>> yaml.dump({yaml.Null, yaml.Null, yaml.Null, yaml.Null, yaml.Null})

ans = 

    "[null, null, null, null,
       null]
     "
MartinKoch123 commented 2 years ago

I fixed that and made a new release. It was related to the work around I had to use to dump nulls. Thanks for pointing it out.