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.
Created attachment 145789 [details] HTML formatter issue HTML formatter doesn't work properly. Actually, it never worked as expected in previous versions either, but now I've just decided to file a bug as it is really annoying. If you look at the screenshot attached, you will see the issue with "body" section. The opening tag is at the place where it is supposed to be, but everything below it is shifted left. That's the behavior of auto-formatting (Alt-Shift-F on Windows). In general it's not about "body" tag specifically, you can get it anywhere unexpectedly. The same issue you may find using editor for modifying PHP or Grails files, for example. Please fix it, I have been experiencing this issue with NetBeans probably for 4-5 years already.
The case on screenshot is caused by obsolete element <center>, with e.g. 4.01 Transitional DTD it works. I think this is the same cause as in 198094 *** This bug has been marked as a duplicate of bug 198094 ***
Agreed, it makes sense. I have checked "transitional", that works.