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 224434 - Incorrect indentation when HTML is combined with JSP/GSP tags
Summary: Incorrect indentation when HTML is combined with JSP/GSP tags
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-03 15:44 UTC by Martin Janicek
Modified: 2014-10-06 13:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Janicek 2013-01-03 15:44:47 UTC
Create new jsp file e.g. in web application project with following (expected) content:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <ul>
    <c:forEach>
      <li></li>
    </c:forEach>
  </ul>
</html>

After formating the source file we will see:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <ul>
    <c:forEach>
      <li></li>
      </c:forEach>
  </ul>
</html>

..the end token of JSP tag is incorrectly indented. This issue is most probably caused by Editor Indentation Extension module (the same happen in GSP file only with GTag instead of JSP tag), but not sure if it has it's own component.

Also if we split <li></li> into two lines instead of one or use different tags than <li> + <ul> the formatting will indent the file correctly. So it looks like some problem with <ul>, <li>, <th> tags in combination with JSP/GSP tags.