chyh1990 / yaml-rust

A pure rust YAML implementation.
Apache License 2.0
601 stars 138 forks source link

tabs are not allowed as the first character of a block scalar #178

Open ahl opened 2 years ago

ahl commented 2 years ago

This results in an error:

    let content = "
    foo: |
      \tthis line starts with a tab
    ";
    let y = yaml_rust::YamlLoader::load_from_str(&content);
    println!("{:#?}", y);

Other yaml parsers seem to parse this successfully