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.
What I get when I press Alt+Shift+F: <div> <?php foreach ($chapters as $chapter): ?> <div><?php echo $chapter['name']; ?></div> <?php endforeach; ?> </div> <div> <?php foreach ($chapters as $chapter): ?> <div><?php echo $chapter['name']; ?></div> <?php endforeach; ?> </div> -------------------------------------- What I expected: <div> <?php foreach ($chapters as $chapter): ?> <div><?php echo $chapter['name']; ?></div> <?php endforeach; ?> </div> <div> <?php foreach ($chapters as $chapter): ?> <div><?php echo $chapter['name']; ?></div> <?php endforeach; ?> </div> Additional info: There also seems to be trailing blank spaces inserted after the closing </div> tags that is not expected.
Both issues are reproducible. The spaces after </div> tag and the code is not formatted properly.
I have fixed the problem with spaces. Still need to be handle the alternative php syntax in html files.
Integrated into 'main-golden', will be available in build *201008100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c687416126e0 User: Petr Pisl <ppisl@netbeans.org> Log: #189002 - Issue with indenting PHP files that use the alternate PHP format This doesn't fix directly the issue. It's fix of similar problem that has to be fixed before fixing issue #189002
Fixed the last issue. Now it should be ok.
Integrated into 'main-golden', will be available in build *201008110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/07fcde4aa720 User: Petr Pisl <ppisl@netbeans.org> Log: #189002 - Issue with indenting PHP files that use the alternate PHP format The last fix for this issue.