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.
Source: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php namespace a\b { class SondaTransformer { //put your code here } } namespace { function functionName($param) { } $tr = new \a\b\SondaTransformer(); } ?> </body> </html>
I can not reproduce the original problem, but I did a fix that corrects the position of the second namespace keyword when you invoke format for whole file.
verified in trunk (current revision 172220:0ed429967cef) can be ported to 6.9.1
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/0ed429967cef User: Petr Pisl <ppisl@netbeans.org> Log: #186738 - wrong format. after code templ. generation (in html + namespace bracket syntax)
The fix has been ported into the release691 branch. http://hg.netbeans.org/release691/rev/7644b6097cfe
Verified in: Product Version: NetBeans IDE 6.9.1 Dev (Build 201007182301) 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)