Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

TomlTableWriter does not escape Keys properly. #23

Closed
pragmatrix opened this issue Apr 26, 2017 · 1 comment
Closed

TomlTableWriter does not escape Keys properly. #23

pragmatrix opened this issue Apr 26, 2017 · 1 comment

Comments

@pragmatrix
Copy link

According to the TOML specification, BareKeys may contain dots (.) and if they do, the key needs to be quoted.

The parser seems to take in quoted keys as expected, but TomlTableWriter does not escape them and generates invalid TOML files.

For example:

"a.value" = 0

is written as

a.value = 0
@pragmatrix
Copy link
Author

I've tried the current master, even table names like ['a.b'.c] are properly written. Nice work and thank you for that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant