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 186918 - Code Re-Formatter Incorrectly Formats "After Field" for PHP Blank Lines
Summary: Code Re-Formatter Incorrectly Formats "After Field" for PHP Blank Lines
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 19:39 UTC by green.eggs
Modified: 2011-04-08 08:52 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 green.eggs 2010-05-28 19:39:17 UTC
Product Version = NetBeans IDE 6.9 RC1 (Build 201005242201)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_18
Runtime = Java HotSpot(TM) Client VM 16.0-b13

Go to menu Tools and open Options->Editor->Formatting and set
Language = PHP
Category = Blank Lines

Change "After Field" value to something high like 10. Then reformat your code. It does nothing. This was not the case with the beta version.

Thanks,
Sam
Comment 1 Peter Pis 2010-05-31 08:41:56 UTC
Please evaluate.
Comment 2 FabianBlechschmidt 2010-08-16 15:03:25 UTC
I can approve the bug. It has no effect changing the setting 
"Blank Lines" "After Field"

The setting is always 1.
Comment 3 doldev 2010-11-30 13:25:08 UTC
*** Bug 187161 has been marked as a duplicate of this bug. ***
Comment 4 fdume 2011-04-07 12:19:09 UTC
This problem is also present in Netbeans 7.0 RC1.
Comment 5 Petr Pisl 2011-04-07 13:14:45 UTC
I have looked at the code. The option is not used anywhere. Needs to be implemented.
Comment 6 Petr Pisl 2011-04-07 14:16:42 UTC
I fixed it in web-main. The problem was that there was used before_field property instead after_field property. 

It will be a part of NetBeans 7.next.
Comment 7 Quality Engineering 2011-04-08 08:52:49 UTC
Integrated into 'main-golden', will be available in build *201104080400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b0fbff64bb7f
User: Petr Pisl <ppisl@netbeans.org>
Log: #186918 - Code Re-Formatter Incorrectly Formats "After Field" for PHP Blank Lines