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.
Tested XP 6.7 and 6.7.1, Mac OS X 10.5.5/10.5.6 with 6.7 and 6.7.1. When auto formatting script if the operation comes across and "elseif" (no space) branch it indents correctly. On the other hand if the operation comes across "else if" (space) it will incorrectly nest the operation and curly brace of that else if. Images should be attached, text example first: public function netBeansBug() { if ($condition === TRUE) { // do this } else if ($condition === TRUE) { // do that } } After running the auto format operation it's incorrecly indented to: (Please note that I've filed a separate bug for the comment misplacements here #172116 ) public function netBeansBug() { if ($condition === TRUE) { // do this } else if ($condition === TRUE) { // do that } }
Created attachment 87570 [details] Expected else if after formatting
Created attachment 87571 [details] Incorrect else if after formatting
*** This issue has been marked as a duplicate of 164381 ***