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.
Summary: | Auto code formatting keeps adding tabs to code | ||
---|---|---|---|
Product: | php | Reporter: | vortextangent |
Component: | Formatting & Indentation | Assignee: | Ondrej Brejla <obrejla> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | vriha |
Priority: | P3 | ||
Version: | 7.3.1 | ||
Hardware: | Macintosh | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
IDE log
Sample Code Exported formatting settings |
Description
vortextangent
2014-03-17 13:53:19 UTC
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. |