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.
I have the following code <?php class NewTester { } <-- A blank line here and I hope that it is kept after the reformatting ?> With "After Class" blank line formatting option is set to 1, I tried to reformat the above source code. The result is <?php class NewTester { } ?> The original blank line is removed and no blank line is added as expected. It does mean that "After Class" option does not force editor to add an additional blank line after the closing brace "}" of the class. However, if I add a function after the class's closing brace, it works again. Before: <?php class NewTester { } function doIt() { } ?> After: <?php class NewTester { } <-- A blank line here and it works function doIt() { } ?> It means that "After Class" blank line formatting option does not work with closing PHP tag ?>
Fixed in web-main clone. Should be available in the next daily build and also probably in the patch release of NB 6.9. There was a bug in the counting new lines before close tag. It always adds 0 new lines, now according the rules.
I reproduced issue in build from June 01, 2010. Product Version: NetBeans IDE Dev (Build 2010-06-01_09-04-11 ) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01
There is a problem in web-main continual build. The fix wasn't probably propagated yet. The detail of the yesterday commit is here: http://hg.netbeans.org/web-main?cmd=changeset;node=9bd8e736b93c
ok. thanks. will try again after problem problem with build is resolved
Integrated into 'main-golden', will be available in build *201006030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9bd8e736b93c User: Petr Pisl <ppisl@netbeans.org> Log: #186940 - "After Class" formatting option does not work correctly with closing tab ?>
verified in trunk (on changeset: 172399:0516319c111d)
can be ported to 6.9.1
Transplanted to release691 as 9bd8e736b93c
Correction, transplanted to release691 as 61eef4ef07b9
Verified in the following 6.9.1 build: Product Version: NetBeans IDE 6.9.1 Dev (Build 201007062301) Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279 System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)