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 145593 [details] wrong indent of tags 1. Create JSP file: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <html> <head> <title>Roster</title> </head> <body> <h1>Roster</h1> <ul> <c:forEach var="member" items="${memberList}" varStatus="status"> <li> <a href="member.do?id=${status.index}"> <c:out value="${member}"></c:out> </a> </li> </c:forEach> </ul> </body> </html> 2. Reformat it >> Tags </a>, </li> have wrong indent (see attached image) Product Version: NetBeans IDE 8.0 RC1 (Build 201402242200) Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b67 Runtime: Java(TM) SE Runtime Environment 1.8.0-b126 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Problem seems to be connected to dynamic creation of HTML elements attributes. Example: <input type="checkbox" name="test" id="test" <c:if test="<%=true%>">checked</c:if>> <label for="test"> <fmt:message key="test"/> </label> <input type="checkbox" name="test" id="test" class="<c:if test="<%=true%>">hidden</c:if>"> <label for="test"> <fmt:message key="test"/> </label> Note: It works fine with HTML only: <input type="checkbox" name="test" id="test"> <label for="test"> <fmt:message key="test"/> </label> Still presents in 8.0.2
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