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
I noticed tomli is stricter than toml when it comes to whitespaces:
tomli
toml
$ cat sample.toml digests = [ { key = "value", key2 = "value2" } ] $ In [4]: toml.load('sample.toml') Out[4]: {'digests': [{'key': 'value', 'key2': 'value2'}]} $ In [5]: tomli.load(open('sample.toml', 'rb')) ... 403 return parse_one_line_basic_str(src, pos) --> 404 raise suffixed_err(src, pos, "Invalid initial character for a key part") TOMLDecodeError: Invalid initial character for a key part (at line 2, column 4)
Is it something that can be relaxed, please?
The text was updated successfully, but these errors were encountered:
Hi there!
Tomli implements the TOML spec. This can only be relaxed if the spec changes. Quoting https://toml.io/en/v1.0.0#inline-table
No newlines are allowed between the curly braces unless they are valid within a value.
I'm closing this in favor of toml-lang/toml#516
Sorry, something went wrong.
Thanks, appreciate your fast reply.
No branches or pull requests
I noticed
tomli
is stricter thantoml
when it comes to whitespaces:Is it something that can be relaxed, please?
The text was updated successfully, but these errors were encountered: