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

inconsistent empty keys parse/print #13

Closed
Roger-luo opened this issue Dec 5, 2020 · 0 comments
Closed

inconsistent empty keys parse/print #13

Roger-luo opened this issue Dec 5, 2020 · 0 comments

Comments

@Roger-luo
Copy link
Contributor

Roger-luo commented Dec 5, 2020

since there is no null type in TOML specification, people are supposed to use an empty field to represent this, but the TOML.print function does not implement this correctly, e.g

julia> s = """
       user = "me"
       [julia]
       [option]
       """
"user = \"me\"\n[julia]\n[option]\n"

julia> d = TOML.parse(s)
Dict{String,Any} with 3 entries:
  "julia"  => Dict{String,Any}()
  "option" => Dict{String,Any}()
  "user"   => "me"

julia> TOML.print(d) # incorrect
user = "me"

See also: toml-lang/toml#30

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