-
Notifications
You must be signed in to change notification settings - Fork 194
Open
Labels
component: decoderRelated to parsing in `toml.load`Related to parsing in `toml.load`syntax: stringsRelated to string literalsRelated to string literalstype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Description
I've got a toml file like this:
x=["""hello
world"""]
This looks like valid toml to me. However parsing it with the library gives the result:
>>> with open("test.toml") as file:
... x = toml.load(file)
...
>>> x
{'x': ['h']}
It seems the string is just completely cut off after the first character. Changing the string content sometimes results in other cutoffs:
x=["""this is a test
"""]
results in:
{'x': ['this is a ']}
I'm using Python 3.6.1 and toml github master on windows.
Metadata
Metadata
Assignees
Labels
component: decoderRelated to parsing in `toml.load`Related to parsing in `toml.load`syntax: stringsRelated to string literalsRelated to string literalstype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior