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.
I know this used to work properly but it's at some point broken and gone unnoticed, I tend to use JSTL now days so didn't notice this breaking. Steps to reproduce ------------------ 1. Create a new JSP 2. Enter the text: <% if (true) { %> <% if (true) { %> <% } %> <% }%> 3. Invoke Source > Format Expected result --------------- Source should be reformatted as <% if (true) { %> <% if (true) { %> <% } %> <% }%> Actual result ------------- Nothing happens. Try with other variations for even stranger formatting behaviour, like placing the escapes on their own lines, i.e. <% if (true) { %> <% if (true) { %> <% } %> <% } %>
This is probably the same problem: Given the JSP fragment below... (In case it doesn't format properly, the div is indented in from the java code by 2 spaces.) The cursor is immediately after the = on the div line. If I paste something in at the cursor point, the div line is shifted left 2 spaces, so that it lines up with the java lines. I think it should remain indented. <% if (order.hasPackSlipPrinted()) { %> <div>Packslip printed <%= %></div> <% } %>