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
I noticed a problem with the yaml parser component in version 2.3.3. The folded style block seem to not correctly parse line breaks which includes indents oder blank lines.
Here is a small example:
small:
test: >
<h2>A heading</h2>
<ul>
<li>a list</li>
<li>may be a good example</li>
</ul>
I would expect a resulting string like:
<h2>A heading</h2><ul><li>a list</li><li>may be a good example</li></ul>
Currently I receive something like that:
<h2>A heading</h2>
<ul> <li>a list</li> <li>may be a good example</li></ul>
The parse should not replace the line break and all following white spaces with a space. Lines with no content should be omitted too.
The text was updated successfully, but these errors were encountered:
I think this is a bug but mostly keep in mind #8562 (comment)
I have seen this usage in symfony-cmf to plug html as a parameter they were using | though. I think all in all you can further process your html with other means and format it without spaces or trim them without problems.
#8562 (comment) points to a larger attempt to support yaml parsing fully patch by patch imo
This PR was merged into the 2.3 branch.
Discussion
----------
[Yaml] fix indented line handling in folded blocks
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #9105
| License | MIT
| Doc PR |
Commits
-------
756834c [Yaml] fix indented line handling in folded blocks
I noticed a problem with the yaml parser component in version 2.3.3. The folded style block seem to not correctly parse line breaks which includes indents oder blank lines.
Here is a small example:
I would expect a resulting string like:
Currently I receive something like that:
The parse should not replace the line break and all following white spaces with a space. Lines with no content should be omitted too.
The text was updated successfully, but these errors were encountered: