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.
When formatting a file, either on save or by right clicking and selecting from popup menu, certain sections of code keep getting extra tabs. It happens most on files that mix php and html code and will generally only affect the html code portions. Product Version = NetBeans IDE 7.3.1 (Build 201306052037) Operating System = Mac OS X version 10.9.2 running on x86_64 Java; VM; Vendor = 1.6.0_65 Runtime = Java HotSpot(TM) 64-Bit Server VM 20.65-b04-462
Created attachment 146072 [details] IDE log
can you please provide sample of code and screenshot of formatting settings? Thanks
Please try it in NetBeans 8.0 and if you still see this problem, attach here a sample file to reproduce it. Thank you Closing as incomplete, waiting for reporter's feedback.
Created attachment 147206 [details] Sample Code
Created attachment 147207 [details] Exported formatting settings
Thank you for the sample, reproducible so reopening. Product Version: NetBeans IDE 8.0 (Build 201403101706) Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1.1 Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
I'm quite sure this is bug in php. This is minimal case: <?php if (isset($results['records'])) : ?> <pre style="float: left;"> <code>Done. Number of programs: <?php echo $results['records']; ?> </code> </pre> <?php endif; ?> HTML calculated right values for <pre>, <code> PHP gets this values from doc.getProperty("AbstractIndenter.lineIndents"); And PHP will add more whitespaces.