-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[YAML] Yaml::parse() does not handle empty lines in mulitline sequence elements #21005
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
Labels
Comments
there is a difference between your 2 cases: in the second case, the line is not empty, but contains the indentation whitespaces like the |
I've updated my post. Case 2 works even if the line is empty |
fabpot
added a commit
that referenced
this issue
Jan 3, 2017
…bbuh) This PR was merged into the 2.7 branch. Discussion ---------- [Yaml] handle empty lines inside unindented collection | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21005 | License | MIT | Doc PR | Commits ------- bbfe6f7 handle empty lines inside unindented collection
@xabbuh Yes, issue is fixed. Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Yaml::parse()
seems to have problems if an element of a sequence contains a multiline string containg an empty line:This example results in a
ParseException
with the messageUnable to parse at line 8 (near " bla").
.If empty lines are used outside the sequence,
Yaml::parse()
does not throw theException
. F.e. this example works fine:The text was updated successfully, but these errors were encountered: