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 - Can't press [Enter] before closing brace
Summary: Can't press [Enter] before closing brace
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-12 21:48 UTC by brettryan
Modified: 2015-11-12 21:48 UTC (History)
0 users

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 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.