You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
As of #34449 when using Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK any multiline string with CRLF new lines will be encoded as a single line quoted string instead of a scalar block.
How to reproduce
Try to dump a string with CRLF new lines.
occanowey
changed the title
CRLF multiline strings not dumpped as scalar blocks
[Yaml] CRLF multiline strings not dumpped as scalar blocks
Sep 13, 2020
Yeah, That's my bad I should have tested beforehand. #34449 was the most recent commit that looked like it was the cause, after some more research it looks like it was done on purpose in #25864
I'm not sure I'm happy with that solution as the root cause appears to be this but it is working as intended so I'm going to close this.
Symfony version(s) affected: 3.4.37+, 4.3.10+, 4.4.2+, 5.0.2+
Description
As of #34449 when using
Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK
any multiline string with CRLF new lines will be encoded as a single line quoted string instead of a scalar block.How to reproduce
Try to dump a string with CRLF new lines.
e.g.
produces:
Possible Solution
Change
explode
back topreg_split
, but I'm unsure it explode was used for a specific reason.The text was updated successfully, but these errors were encountered: