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.

Bug 242590 - HTML formatter doesn't work properly
Summary: HTML formatter doesn't work properly
Status: CLOSED DUPLICATE of bug 198094
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: issues@web
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-06 00:11 UTC by csbubbles
Modified: 2014-03-06 20:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
HTML formatter issue (9.46 KB, image/png)
2014-03-06 00:11 UTC, csbubbles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description csbubbles 2014-03-06 00:11:44 UTC
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.
Comment 1 Vladimir Riha 2014-03-06 07:49:09 UTC
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 ***
Comment 2 csbubbles 2014-03-06 20:49:46 UTC
Agreed, it makes sense. I have checked "transitional", that works.