This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269423 - Twig wrong formatting
Summary: Twig wrong formatting
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Twig (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: junichi11
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-24 05:35 UTC by junichi11
Modified: 2016-12-27 03:44 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description junichi11 2016-12-24 05:35:45 UTC
from the issue 209026 by b1385616

I get:

{% block choice_widget_expanded -%}
    <div {{ block('widget_container_attributes') }}>
        {%- for child in form %}
        <div class="chooseOptionBox">
            {{- form_widget(child) -}}
            {{- form_label(child) -}}
        </div>
        {% endfor -%}
        </div>
        {% endblock choice_widget_expanded %}


instead of:

{% block choice_widget_expanded -%}
    <div {{ block('widget_container_attributes') }}>
        {%- for child in form %}
        <div class="chooseOptionBox">
            {{- form_widget(child) -}}
            {{- form_label(child) -}}
        </div>
        {% endfor -%}
    </div>
{% endblock choice_widget_expanded %}
Comment 1 junichi11 2016-12-24 05:40:30 UTC
Also the following case:

<html>
    <body>
        {% block body %}{% endblock %}
    </body>
</html>

Result:
<html>
    <body>
    {% block body %}{% endblock %}
</body>
</html>
Comment 2 junichi11 2016-12-25 02:48:57 UTC
(In reply to junichi11 from comment #1)
> Also the following case:
> 
> <html>
>     <body>
>         {% block body %}{% endblock %}
>     </body>
> </html>
> 
> Result:
> <html>
>     <body>
>     {% block body %}{% endblock %}
> </body>
> </html>

This case is the issue 243184[1]

[1] https://netbeans.org/bugzilla/show_bug.cgi?id=243184
Comment 3 junichi11 2016-12-26 01:15:12 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/49ad1d7603c1

Thanks.
Comment 4 Quality Engineering 2016-12-27 03:44:27 UTC
Integrated into 'main-silver', will be available in build *201612270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/49ad1d7603c1
User: Junichi Yamamoto <junichi11@netbeans.org>
Log: #269423 - Twig wrong formatting