Failure to dump empty keys.
Closed this issue · 0 comments
dreid commented
Per TOML v1.0.0
A bare key must be non-empty, but an empty quoted key is allowed (though discouraged).
Currently, TomlRB will parse:
[foo]
"" = "bar"
as
{"foo"=>{""=>"bar"}}
However it dumps the above as:
[foo]
= "bar"
Which is invalid TOML that it (rightly) refuses to parse again.