Skip to content

Commit

Permalink
minor #12422 Fixed whitespace control for password form widget (peter…
Browse files Browse the repository at this point in the history
…rehm)

This PR was merged into the 2.5 branch.

Discussion
----------

Fixed whitespace control for password form widget

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

When removing the spaceless tags the additional needed `-` has been forgotten for the password widget.

By the way, is in the {% tags the - at the end of the starting and at the beginning of the ending tag sufficient?
This does not correspond to the twig documentation where it is always documented on the beginning and at the end.

````php
{% block hidden_widget -%}
    {% set type = type|default('hidden') %}
    {{- block('form_widget_simple') -}}
{%- endblock hidden_widget -%}
````

Commits
-------

809cf24 Fixed whitespace control for password form widget
  • Loading branch information
fabpot committed Nov 9, 2014
2 parents 1bba799 + 809cf24 commit 4faf360
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -162,7 +162,7 @@

{% block password_widget -%}
{% set type = type|default('password') %}
{{ block('form_widget_simple') }}
{{- block('form_widget_simple') -}}
{%- endblock password_widget %}

{% block hidden_widget -%}
Expand Down

0 comments on commit 4faf360

Please sign in to comment.