uiri / toml

Python lib for TOML
MIT License
1.09k stars 190 forks source link

Parsing inline tables with multiline values #126

Open nroi opened 7 years ago

nroi commented 7 years ago

In the official spec, it says:

Inline tables are intended to appear on a single line. No newlines are allowed between the curly braces unless they are valid within a value. Even so, it is strongly discouraged to break an inline table onto multiples lines. If you find yourself gripped with this desire, it means you should be using standard tables.

I guess it's a rather minor issue, but currently, this library fails to parse something like "x = {y = \"\"\"foo\nbar\"\"\"}" which is supported, although discouraged.

dsully commented 5 years ago

+1