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 257679 - Incorrect indentation of braces inside <script> tag.
Summary: Incorrect indentation of braces inside <script> tag.
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-22 13:33 UTC by Echo89
Modified: 2016-01-22 13:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of error. (40.88 KB, image/png)
2016-01-22 13:33 UTC, Echo89
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Echo89 2016-01-22 13:33:58 UTC
Created attachment 158222 [details]
Screenshot of error.

Hi,

I have just realised that Bug #257678 is probably related to this:

When typing an if statement, a function block, or any other block that uses '{' and '}' is not correctly indented when inside a <script> tag that is indented itself.

To replicate this issue, copy and past the following into a HTML file in netbeans:

<!DOCTYPE html>
<html>
    <head>
        <title>Indentation Test</title>
    </head>
    <body>
        <script>
            
        </script>
    </body>
</html>

Now try and type a function, an object, if statement or any other block inside that script tag, and you'll see that the indentation netbeans applies is wrong.