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 270903 - Wrong formatting for method/function parameters when the wrapping always option is set
Summary: Wrong formatting for method/function parameters when the wrapping always opti...
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: junichi11
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-18 06:17 UTC by junichi11
Modified: 2017-06-20 01:56 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 junichi11 2017-06-18 06:17:28 UTC
Options: Wrapping > Method Parameters: Always

Sample code:

function wrapAlways(
        $p1,
        $p2,
        $p3) {
}

Expected Result:

function wrapAlways(
        $p1,
        $p2,
        $p3) {
    
}

Actual Result:

function wrapAlways(
$p1,
        $p2,
        $p3) {
    
}

The first parameter is not indented.
Comment 1 junichi11 2017-06-19 03:32:36 UTC
Fixed.

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

Thanks.
Comment 2 Quality Engineering 2017-06-20 01:56:46 UTC
Integrated into 'main-silver', will be available in build *201706200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/eb818a785135
User: Junichi Yamamoto <junichi11@netbeans.org>
Log: #270903 - Wrong formatting for method/function parameters when the wrapping always option is set