-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Symfony yaml pattern with double quotes #24408
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
Comments
|
I am going to close here as the observed behaviour is correct. In (double) quoted strings newlines are folded which means that the become a space (see http://www.yaml.org/spec/1.2/spec.html#id2760844). |
Sorry, I missed to add the backslash at the end of the line in the pattern. I understand that the each new line is converted to a single space but when you add a backslash at the end of the line then it strips that white space. `yaml Please try to see this here: But if I am wrong you may please help let me know how to achieve the above (spaceless translation of new line characters) |
@faheemhameed I have updated your description to reflect the backslashes. And you are right, for that example you would indeed expect the outcome that you describe. |
see #24416 |
…abbuh) This PR was merged into the 3.3 branch. Discussion ---------- [Yaml] treat trailing backslashes in multi-line strings | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24408 | License | MIT | Doc PR | Commits ------- 80af9b8 treat trailing backslashes in multi-line strings
Uh oh!
There was an error while loading. Please reload this page.
The above pattern supposed to be translated as
http://nodeca.github.io/js-yaml/
But it's translated with a space for line break as below:
It seems to me like a bug.
Thanks.
The text was updated successfully, but these errors were encountered: