We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The tomlkit parser rejects the following valid TOML document:
[''] x = 1
The parser raises an exception:
tomlkit.exceptions.EmptyTableNameError: Empty table name at line 1 col 3
The TOML 1.0.0 spec says about table names:
Naming rules for tables are the same as for keys (see definition of Keys above).
and about keys:
A bare key must be non-empty, but an empty quoted key is allowed (though discouraged).
From these statements, it follows that an empty quoted key is a valid table name.
This testcase is part of toml-test: https://github.com/BurntSushi/toml-test/blob/master/tests/valid/table/empty-name.toml
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The tomlkit parser rejects the following valid TOML document:
The parser raises an exception:
The TOML 1.0.0 spec says about table names:
and about keys:
From these statements, it follows that an empty quoted key is a valid table name.
This testcase is part of toml-test: https://github.com/BurntSushi/toml-test/blob/master/tests/valid/table/empty-name.toml
The text was updated successfully, but these errors were encountered: