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

YAML export escapes newlines #27

Closed
amesgen opened this issue Apr 15, 2020 · 2 comments · Fixed by #38
Closed

YAML export escapes newlines #27

amesgen opened this issue Apr 15, 2020 · 2 comments · Fixed by #38
Labels
bug Something isn't working

Comments

@amesgen
Copy link
Contributor

amesgen commented Apr 15, 2020

Using 0.1.1:

@ YamlConverter.toYamlString(parse(""" { a = "\n" } """).normalize()) 
res15: String = """a: \n
"""

@ JsonConverter.toCompactString(parse(""" { a = "\n" } """).normalize()) 
res16: String = "{\"a\":\"\\n\"}"

THe JSON output is correct, but in the YAML output, the value does not contain a newline (without quotes, \n is not an escape sequence).

@travisbrown
Copy link
Owner

Thanks, taking a look now!

@travisbrown
Copy link
Owner

I really need to just go ahead and address #11 properly. Sorry you're running into these issues—thanks for reporting them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants