Skip to content

[Yaml] fix parsing multi-line mapping values #19304

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

Closed
wants to merge 1 commit into from

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jul 6, 2016

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #11109
License MIT
Doc PR

@fabpot
Copy link
Member

fabpot commented Jul 8, 2016

The question is whether we want to support this. Having a string on multiple lines is already supported via '|' for instance, so do we really need another way? Wouldn't it be good to re-read the spec and write a doc that explicitly list what we do support and what we don't want to support?

@xabbuh
Copy link
Member Author

xabbuh commented Jul 9, 2016

I could also live with not fixing this issue. Though in that case I suggest to provide a more meaningful exception message (something like what I suggested in #11911).

@xabbuh
Copy link
Member Author

xabbuh commented Jul 15, 2016

ping @symfony/deciders Any opinion on this?

@Tobion
Copy link
Contributor

Tobion commented Jul 15, 2016

If that is according to the yaml spec, we should support it as well. We removed support for other stuff like non-quoted strings starting with % to increase compatibility. That wouldn't make sense if the full spec is not supported anyway.

@fabpot
Copy link
Member

fabpot commented Jul 18, 2016

We don't want to support the full YAML spec but a subset of it. So, removing things that were not compatible with the YAML spec was needed but this is different from supporting features that are currently not supported.

@javiereguiluz
Copy link
Member

👍 because this YAML feature is not that "edgy" and because the implementation is reasonably small and simple.

Status: reviewed

@fabpot
Copy link
Member

fabpot commented Aug 15, 2016

ok, let's do it. But that's a new feature then, which should be done on master. @xabbuh I let you merge this on master (there are some conflicts).

@smarcet
Copy link

smarcet commented Sep 19, 2016

is there is any update of this fix ?
regards

@xabbuh xabbuh closed this in 06875e0 Sep 20, 2016
@xabbuh xabbuh deleted the issue-11109 branch September 20, 2016 08:35
@fabpot fabpot mentioned this pull request Oct 27, 2016
fabpot added a commit that referenced this pull request May 11, 2020
…inkine)

This PR was merged into the 3.4 branch.

Discussion
----------

[Yaml] Fix escaped quotes in quoted multi-line string

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| License       | MIT

This PR continues #19304

This PR fixes incorrect parsing quoted multi-line string which contain escaped quotes, see tests

Commits
-------

2e99caa [Yaml] Fix escaped quotes in quoted multi-line string
symfony-splitter pushed a commit to symfony/yaml that referenced this pull request May 11, 2020
…inkine)

This PR was merged into the 3.4 branch.

Discussion
----------

[Yaml] Fix escaped quotes in quoted multi-line string

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| License       | MIT

This PR continues symfony/symfony#19304

This PR fixes incorrect parsing quoted multi-line string which contain escaped quotes, see tests

Commits
-------

2e99caacaf [Yaml] Fix escaped quotes in quoted multi-line string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants