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 128034 - smart enter doesn't work after expression language usage
Summary: smart enter doesn't work after expression language usage
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: Sun All
: P4 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-21 15:28 UTC by Jindrich Sedek
Modified: 2016-07-07 08:55 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 Jindrich Sedek 2008-02-21 15:28:46 UTC
Create new JSP file
use this code:
---------------------
<a href="path">|</a>
---------------------
set cursor possition at place of "|"
press enter -> smart enter works -> resutl:
--------------------
    <a href="path">
        |
    </a>
--------------------
use expression language in html tag:
--------------------
<a href="${path}">|</a>
--------------------
press enter -> smart enter doesn't work -> result:
--------------------
<a href="${path}">
|</a>
--------------------
Comment 1 David Konecny 2009-03-23 22:49:54 UTC
Smart indent is implemented over token hierarchy and the expression language splits HTML token hierarchy into two which
smart indent does no handle. While fixing this fix also skipping of whitespaces between two tags, eg:

<a>  |  </a>

should be smart indented as well.
Comment 2 Martin Balin 2016-07-07 08:55:43 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