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 256568

Summary: Can't press [Enter] before closing brace
Product: javaee Reporter: brettryan <brettryan>
Component: JSPAssignee: issues@javaee <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description brettryan 2015-11-12 21:48:45 UTC
Steps to reproduce
------------------
1. Create a new JSP file
2. Enter the following sequence

<% if (true) {%>
<% } %>

3. Place the insert cursor before the closing brace (shown as an underscore (_) here

<%_} %>

4. Press [Enter]


Expected outcome
----------------
A new line should be inserted.

Actual outcome
--------------
Nothing happens.


Notes
-----
#1 This only affects situations where the closing tag is not in the same escape context as the starting brace. As an example the following sequence is not affected.

<% if (true) {
   } %>

#2 The insert point can be anywhere before the brace, does not have to be at the start of the line or right before the brace to be affected.