-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Yaml ] Use double-quoted for DUMP_MULTI_LINE_LITERAL_BLOCK to allow more characters #39682
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
OK some meta-comment on the lots of IS and title changes: While drilling deeper into the subject, my POV changed from OMG we must do this to This has some benefits WRT non-printable characters. |
Thank you for this suggestion. |
@xabbuh what do you think about this ? |
This looks reasonable to me. @geek-merlin Would you like to give this a try? |
Thank you for this suggestion. |
No time to prioritize this currently, but yes still wanted. |
Thank you for this suggestion. |
++ to fix it |
Thank you for this suggestion. |
Yes, a lot. |
Thank you for this suggestion. |
Alot... |
Thank you for this suggestion. |
Yupp |
Thank you for this suggestion. |
closing here as during the last three years nobody seemed to be interested enough to actually implement it |
Background
Yaml is nice for dumping config in a human-readable and -editable format. E.g. Drupal uses it extensively.
In that context, dumping e.g. CSS as multiline is essential for human-readability.
As discovered in #25842, and confirmed on SO and yaml-multiline.info,
\u1234
, also "\r" is excluded in current codeResearched thoroughly, so which are valid multiline literal characters:
As of current code,
a) "\r" is excluded in current code, which means that any multiline string containing it will not be dumped as multiline, but as quoted scalar.
b) All other (non-printable) characters are invalid as multiline literal, so current code will produce invalid yaml.
Which means
Description
Example
The text was updated successfully, but these errors were encountered: