TomlTableWriter does not escape Keys properly.
pragmatrix opened this issue · comments
Armin commented
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
Armin commented
I've tried the current master, even table names like ['a.b'.c]
are properly written. Nice work and thank you for that.