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 268541 - If else formating
Summary: If else formating
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: junichi11
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-16 01:46 UTC by amobilia
Modified: 2017-06-17 02:19 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 amobilia 2016-10-16 01:46:27 UTC
The formater doesn't work properly for the code below .
A single ligne (and no accolads if is included on another if / else)
-----------------
<?php
if (TRUE) {
    if ($ifWithoutAccolads)
        $something;
}else {
    $something;
}
-----------------

Expectation : 
-----------------
<?php
if (TRUE) {
    if ($ifWithoutAccolads)
        $something;
} else {
    $something;
}
-----------------
[space before else]
Comment 1 junichi11 2017-06-15 05:52:04 UTC
Thanks for reporting!
Comment 2 junichi11 2017-06-16 01:52:52 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/bdbe69fcecd0

Thanks.
Comment 3 Quality Engineering 2017-06-17 02:19:06 UTC
Integrated into 'main-silver', will be available in build *201706170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bdbe69fcecd0
User: Junichi Yamamoto <junichi11@netbeans.org>
Log: #268541 - If else formating