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: | When you format a php file, netbeans add a line feed before the closing tag, so the formatting is a total mess | ||
---|---|---|---|
Product: | php | Reporter: | nomood |
Component: | Formatting & Indentation | Assignee: | Petr Pisl <ppisl> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | fzamboj, narcom |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Before format
After format |
Description
nomood
2010-06-08 07:48:51 UTC
Please evaluate. Do you mean in the html? The behavior is according the options. You can influence it. Could you provide an example? Created attachment 99968 [details]
Before format
Created attachment 99969 [details]
After format
Hi there, thanks for the reply
I added two pictures before/after format in netbeans 6.9
Regards
Ludwig
Now I understand:). Thanks. It's because the open tag <?= is not handled properly. I'm going to fix it. It's too late for NB 6.9, but it will be in the patch release for NB 6.9. Thanks ;) Fixed in the web-main clone. It should be available in tomorrow's dev build. Also I suggest it as 6.9.1 candidate. Integrated into 'main-golden', will be available in build *201006110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f503f0604307 User: Petr Pisl <ppisl@netbeans.org> Log: #187309 - When you format a php file, netbeans add a line feed before the closing tag, so the formatting is a total mess verified. can be pushed to 6.9.1 Transplanted to release691 as 4056b62af811 *** Bug 187695 has been marked as a duplicate of this bug. *** Verified in the latest 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) on the following sample code: <!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> <table> <tr class="tabClient<?=($i % 2)?>"> <td><?=$myFile->nom?></td> <td><?=$myFile->ext?></td> <td><?=$myFile->size?></td> </tr> </table> </body> </html> |