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 247381 - [indentation] wrong indentation for Twig when using html tags
Summary: [indentation] wrong indentation for Twig when using html tags
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Twig (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 20:13 UTC by Tseho
Modified: 2016-08-29 06:06 UTC (History)
0 users

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 Tseho 2014-09-22 20:13:33 UTC
Hi,
I'm having an indentation issue with Twig I have html tags on the same level as conditions.

Before formatting:

<ul>
    {% for item in items %}
        {% if item.isHeader() %}
            <li>{{ separator }}</li>
        {% endif %}
        <li>{{ item }}</li>
    {% endfor %}
</ul>

After formatting:

<ul>
    {% for item in items %}
        {% if item.isHeader() %}
            <li>{{ separator }}</li>
            {% endif %}
        <li>{{ item }}</li>
        {% endfor %}
</ul>
Comment 1 rune_dk 2015-11-01 01:25:42 UTC
+1