8000 [Yaml][Bug] Fix #9105 - Remove white spaces from yml parameter with html by piotrpasich · Pull Request #9787 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Yaml][Bug] Fix #9105 - Remove white spaces from yml parameter with html #9787

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

Closed
wants to merge 1 commit into from

Conversation

piotrpasich
Copy link

There was reported a problem with yaml parser and line breaks in folded style blocks. I have confirmed it and also repaired by adding new regexp to parsing method.

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #9105 Problem with yaml parser and line breaks in folded style blocks
License MIT
  • fixed a problem with yaml parser and line breaks in folded style blocks.
  • added tests for claimed issue

@fabpot
Copy link
Member
fabpot commented Dec 17, 2013

Looks like it does not follow the standard described in the spec: http://www.yaml.org/spec/1.2/spec.html#id2796251

@stof
Copy link
Member
stof commented Dec 17, 2013

I agree with @fabpot.

When following the spec, parsing the following Yaml (taken from your new test)

test: >
    <h2>A heading</h2>

    <ul>
        <li>a list</li>
        <li>may be a good example</li>
    </ul>

should produce the following code:

array ('test' => <<<EOT
<h2>A heading</h2>
<ul>
    <li>a list</li>
    <li>may be a good example</li>
</ul>
EOT
)

@fabpot fabpot closed this Dec 18, 2013
@piotrpasich
Copy link
Author

@stof so still there is a bug in the code because it generates one line with a lot of white spaces. I'll try to change behaviour and push a new pull request with proper code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0