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 parsing of toml tables #356

Open
bitc opened this issue Jan 17, 2021 · 1 comment
Open

Inconsistent parsing of toml tables #356

bitc opened this issue Jan 17, 2021 · 1 comment

Comments

@bitc
Copy link

bitc commented Jan 17, 2021

Hello, it is my understanding that the following two TOML files are supposed to be completely identical:

1

[a]
[a.b]
c = 1
d = 2

2

[a]
b.c = 1
b.d = 2

For example, when I convert it to JSON using this tool https://pseitz.github.io/toml-to-json-online-converter/
I get for both of them:

{
  "a": {
    "b": {
      "c": 1,
      "d": 2
    }
  }
}

But the tomland library seems to think they are different and doesn't generate a "b" table properly in the second snippet.

What I expect to happen: Any code that uses tomland and succesfully parses the first snippet, should get the same results when the second snippet is fed in, and vice versa.

Thank you

@Qqwy
Copy link

Qqwy commented Sep 29, 2022

This is a variation of this issue: #336

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

2 participants