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 146936 - using EL in embedded JS breaks reformating
Summary: using EL in embedded JS breaks reformating
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-11 13:19 UTC by Jindrich Sedek
Modified: 2008-10-07 09:58 UTC (History)
1 user (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 Jindrich Sedek 2008-09-11 13:19:25 UTC
use this code in JSP file:
---------------------
        <script type="text/javascript">
            function f(){
                var p = 10;
                if (p == ${var}){
                }
            }
        </script>
--------------------
invoke reformat ->
result -> end brackets are reformatted incorrectly:
--------------------
        <script type="text/javascript">
            function f(){
                var p = 10;
                if (p == ${var}){
            }
        }
        </script>
--------------------
Comment 1 Jindrich Sedek 2008-09-16 16:36:54 UTC
using more blocks like this one in one scriptlet shifts code more and more to the left side of the document
try to reformat this code in JSP file:
        <script type="text/javascript">
            function f(){
                if (p == ${var}){
                   if (q == ${var}){
                        if (e == ${var}){
                        }
                    }
                }
            }
        </script>
Comment 2 Torbjorn Norbye 2008-10-01 03:51:09 UTC
Fixed in changeset 61516a7c95c3.
Comment 3 Jindrich Sedek 2008-10-07 09:58:03 UTC
verified.
NetBeans IDE Dev (Build 081007)