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 162772

Summary: tricky indentation case which is not handled properly
Product: javaee Reporter: David Konecny <dkonecny>
Component: JSPAssignee: David Konecny <dkonecny>
Status: RESOLVED WONTFIX    
Severity: blocker CC: jsedek
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description David Konecny 2009-04-16 00:09:01 UTC
This is extract from issue 160347: combination of HTML tag with optional end and templating language tag in which
previous HTML may or may not have been closed are not handled optimally. For example:

------------------------------
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head><title></title></head>
    <body>
        <p>
            <c:if test="true">
            <table cellpadding="5" border="1">
                <tr>
                    <td>undefinedKey</td>
                    <td>undefinedKey</td>
                </tr>
            </table>
        </c:if>
</p>
</body>
</html>
----------------------------------
where <table> closed <p> because table is not allowed in paragraph but because of presence of <c:if> formatter gets
confused.
Comment 1 David Konecny 2009-04-16 00:11:11 UTC
*** Issue 160347 has been marked as a duplicate of this issue. ***
Comment 2 Martin Balin 2016-07-07 08:54:27 UTC
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