dtolnay / serde-yaml

Strongly typed YAML library for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Long Map keys bug

perryqh opened this issue · comments

Is there a max line length set somewhere? I'm noticing that if a map key is greater than 128 characters, unexpected characters are prepended and appended to the key.

Here's a failing test: https://github.com/perryqh/serde-yaml/commit/401a1f246bd9835239056479ed7f65d815980a15.

I'm happy to fix this if you point me in the right direction.

I think that is probably intended behavior. That is valid syntax for a map in YAML.

Is the prepended ? character valid YAML?