We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Test case:
$data = [ [ 'name' => 'Lorem ipsum', 'quote' => 'Dolor sit amet.' ], [ 'name' => 'Consetetur sadipscing', 'quote' => '"Elitr sed diam nonumy eirmod."' ] ]; echo Spyc::YAMLDump($data);
Also see getkirby-v2/panel#892 (comment).
Expected behavior:
The second entry is quoted by Spyc so that the quotes around the string get preserved:
- name: Lorem ipsum quote: Dolor sit amet. - name: Consetetur sadipscing quote: '"Elitr sed diam nonumy eirmod."'
Actual behavior:
The string is used as-is without quoting:
- name: Lorem ipsum quote: Dolor sit amet. - name: Consetetur sadipscing quote: "Elitr sed diam nonumy eirmod."
When parsing that YAML string again, the quotes are removed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Test case:
Also see getkirby-v2/panel#892 (comment).
Expected behavior:
The second entry is quoted by Spyc so that the quotes around the string get preserved:
Actual behavior:
The string is used as-is without quoting:
When parsing that YAML string again, the quotes are removed.
The text was updated successfully, but these errors were encountered: