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: | Wrong indentation of custom elements | ||
---|---|---|---|
Product: | web | Reporter: | Vladimir Riha <vriha> |
Component: | HTML Editor | Assignee: | Milutin Kristofic <mkristofic> |
Status: | NEW --- | ||
Severity: | normal | CC: | avandecreme, ppisl, rsvitanic |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Vladimir Riha
2014-11-02 17:06:18 UTC
This happens only in case if custom element is placed directly inside the body element. If it's placed in e.g., div, then formatting is correct. Same issue applies to the user-defined HTML custom elements: e.g., write <test-element></test-element> inside the body and click offered hint, select "Add element "test-element" to the projects custom elements", then reformat the document. It seems to be more general issue with indentation. Reassigning to HTML editor for evaluation. Thanks. I have the same problem if the element is inside of a <td> I checked code and it is because of this function org/netbeans/modules/web/indent/api/support/MarkupAbstractIndenter:calculateAllVirtualCloseTagsForOpenTag():697 Netbeans finds unknown tag (messages), virtually close <body> tag and thinks, this is after </body> I don't know if this functionality is useful. It can be removed, and then it will work well in this case. |