-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
Double-quoted Multi-line string deserialization issue #508
Comments
I'm experiencing the same issue with the latest version. I agree with @jmcburn, according to the 1.2 specification (Example 7.5), double quoted strings are allowed to have line breaks that carry into the expressed content. |
I can third this. |
This has been discussed in #557. It turns out that multiline double-quoted scalars must be indented. Attempting to parse this example in the reference parser gives an error as well. |
@aaubry I see, but is there a way to make YamlDotNet still being able to read them once and then on writing the yaml again, make it emit those quoted strings in the correct way with indentation? The problem is that I now have a few hundred, if not thousands of unreadable yamls now, and fixing them by hand might take quite some time. Any help would be appreciated. |
Seems there is a problem with deserializing double-quoted multi-line strings.
Until a few versions this deserialized fine and according to yaml testers this should not be a problem:
Problem:
Now I get the following error:
"While scanning a multi-line double-quoted scalar, found wrong indentation."
When I add indentations to the lines, it works fine:
In my experience and as far as my researches went, indentations on follow-up lines of double-quoted multi-line strings are are not necessary.
The text was updated successfully, but these errors were encountered: