Skip to content

[Form][3.3] avoid double blanks while rendering form attributes #22845

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

Merged

Conversation

craue
Copy link
Contributor

@craue craue commented May 22, 2017

Q A
Branch? 3.3
Bug fix? kind of
New feature? no
BC breaks? no (rather reverts one)
Deprecations? no
Tests pass? we'll see
Fixed tickets --
License MIT
Doc PR --

This fix avoids the double blanks introduced by #20365 when using the Twig template. The attributes block already renders one blank before each attribute, so there's no need to add another one prior to calling the block.

@ro0NL
Copy link
Contributor

ro0NL commented May 22, 2017

Was actually already the case before #20365, i preserved it. But the change makes sense i guess (not sure what we care about; browsers dont care right?)

@craue
Copy link
Contributor Author

craue commented May 22, 2017

@ro0NL, you're right. The blanks were there before, but not in 3.2.

@nicolas-grekas nicolas-grekas added this to the 3.3 milestone May 22, 2017
@nicolas-grekas
Copy link
Member

Thank you @craue.

@nicolas-grekas nicolas-grekas merged commit a9c11c9 into symfony:3.3 May 23, 2017
nicolas-grekas added a commit that referenced this pull request May 23, 2017
…ributes (craue)

This PR was merged into the 3.3 branch.

Discussion
----------

[Form][3.3] avoid double blanks while rendering form attributes

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | kind of
| New feature?  | no
| BC breaks?    | no (rather reverts one)
| Deprecations? | no
| Tests pass?   | we'll see
| Fixed tickets | --
| License       | MIT
| Doc PR        | --

This fix avoids the double blanks introduced by #20365 when using the Twig template. The `attributes` block already renders one blank before each attribute, so there's no need to add another one prior to calling the block.

Commits
-------

a9c11c9 avoid double blanks while rendering form attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants