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 267642 - [82cat] Bad indentation when editing JSP files
Summary: [82cat] Bad indentation when editing JSP files
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-19 15:33 UTC by mclaborn
Modified: 2016-09-15 14:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (257.68 KB, text/plain)
2016-08-19 15:33 UTC, mclaborn
Details
Before pressing enter (50.82 KB, image/png)
2016-08-19 15:34 UTC, mclaborn
Details
After pressing enter, indentation is wrong (47.82 KB, image/png)
2016-08-19 15:34 UTC, mclaborn
Details
Proper indentation (45.28 KB, image/png)
2016-08-19 15:35 UTC, mclaborn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2016-08-19 15:33:33 UTC
Product Version = NetBeans IDE Dev (Build 201608150002)
Operating System = Linux version 4.4.0-34-generic running on amd64
Java; VM; Vendor = 1.8.0_102
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.102-b14

Reproducibility: Happens every time

The editor does not mainain proper indentation when editing JSP files. In general, it behaves as if JSP scriplets do not factor in to the indentation. In the screen shot examples coming shortly, the indentation is correct when the "if" statement in JSP scriptlet is removed.

Here are the steps that go along with the screen shots:
1. JSP scriptlet with "if" statement
2. <td></td> on a single line indented, cursor between <td> and </td>
3. Press enter
5. the td constructs outdent to match the other td before at the same level as the "if"
6. I think that the td should be indented from the "if"
Comment 1 mclaborn 2016-08-19 15:33:35 UTC
Created attachment 161717 [details]
IDE log
Comment 2 mclaborn 2016-08-19 15:34:57 UTC
Created attachment 161718 [details]
Before pressing enter
Comment 3 mclaborn 2016-08-19 15:34:58 UTC
Created attachment 161719 [details]
After pressing enter, indentation is wrong
Comment 4 mclaborn 2016-08-19 15:35:00 UTC
Created attachment 161720 [details]
Proper indentation
Comment 5 Jiri Kovalsky 2016-09-15 14:15:26 UTC
Reassigned to JavaEE folks for further evaluation.