Skip to content
New issue

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

Multi-line basic string trims empty lines #124

Closed
condemil opened this issue Sep 10, 2017 · 1 comment
Closed

Multi-line basic string trims empty lines #124

condemil opened this issue Sep 10, 2017 · 1 comment

Comments

@condemil
Copy link

From spec:

Multi-line basic strings are surrounded by three quotation marks on each side and allow newlines. A newline immediately following the opening delimiter will be trimmed. All other whitespace and newline characters remain intact.

Test toml:

str1 = """
Roses are red

Violets are blue"""

Result:

>>> toml.load('test.toml')['str1']
'Roses are red\nViolets are blue'

Expected result:

>>> toml.load('test.toml')['str1']
'Roses are red\n\nViolets are blue'
@uiri
Copy link
Owner

uiri commented Sep 11, 2017

Hi,

Thank you for the bug report.

Can you provide enough information so that I can ascertain whether this is a duplicate of #113, #123, #119, #116, #80, or #68 ?

Closing as duplicate.

@uiri uiri closed this as completed Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants