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 243317 - [indentation] wrong indentation for Twig set with no endset tag
Summary: [indentation] wrong indentation for Twig set with no endset tag
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Twig (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-27 10:45 UTC by nkuzman
Modified: 2014-04-24 11:24 UTC (History)
1 user (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 nkuzman 2014-03-27 10:45:09 UTC
Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)


Before formatting:

{% set foo = "" %}
{% for item in list %}
    {% set foo = item %}
{% endfor %}


After formatting:

{% set foo = "" %}
    {% for item in list %}
        {% set foo = item %}
            {% endfor %}
Comment 1 nahuelhds 2014-03-27 15:26:35 UTC
+1 for this issue.

Would be nice if you can fix this :)
Comment 2 Vladimir Riha 2014-03-31 05:37:32 UTC
reproducible

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 Ondrej Brejla 2014-04-11 10:37:53 UTC
Fixed in web-main #82f53652319e
Comment 4 Quality Engineering 2014-04-12 05:06:53 UTC
Integrated into 'main-silver', will be available in build *201404120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/82f53652319e
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #243317 - [indentation] wrong indentation for Twig set with no endset tag
Comment 5 Vladimir Riha 2014-04-15 13:58:35 UTC
Verified

Product Version: NetBeans IDE Dev (Build 201404150001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 6 Ondrej Brejla 2014-04-18 10:54:42 UTC
Transplanted to release80 branch.
Comment 7 Quality Engineering 2014-04-24 02:15:22 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/21a319f95a92
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #243317 - [indentation] wrong indentation for Twig set with no endset tag
(transplanted from 82f53652319ec748d3cea7e66e57714e9fe3ceee)
Comment 8 Vladimir Riha 2014-04-24 11:24:45 UTC
Verified in patch1

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)