Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment lines are eaten in text blocks #52

Open
polettix opened this issue Aug 7, 2018 · 0 comments
Open

Comment lines are eaten in text blocks #52

polettix opened this issue Aug 7, 2018 · 0 comments

Comments

@polettix
Copy link
Contributor

polettix commented Aug 7, 2018

YAML::Tiny version 1.73 eats up all comment lines even when they belong to a block of text:

$ cat prova.yml
whatever: |
   #!/bin/bash
   env
   # another comment
      # indented comment
   # back from indentation

$ perl -MYAML::XS=LoadFile -E 'say LoadFile("prova.yml")->{whatever}'
#!/bin/bash
env
# another comment
   # indented comment
# back from indentation


$ perl -MYAML::Tiny=LoadFile -E 'say LoadFile("prova.yml")->{whatever}'
env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant