Skip to content

Comment lines are eaten in text blocks #52

@polettix

Description

@polettix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions