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.
Create new JSP file use this code: --------------------- <a href="path">|</a> --------------------- set cursor possition at place of "|" press enter -> smart enter works -> resutl: -------------------- <a href="path"> | </a> -------------------- use expression language in html tag: -------------------- <a href="${path}">|</a> -------------------- press enter -> smart enter doesn't work -> result: -------------------- <a href="${path}"> |</a> --------------------
Smart indent is implemented over token hierarchy and the expression language splits HTML token hierarchy into two which smart indent does no handle. While fixing this fix also skipping of whitespaces between two tags, eg: <a> | </a> should be smart indented as well.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss