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 54327 - Expressions are not formatted correctly.
Summary: Expressions are not formatted correctly.
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-02 08:57 UTC by Jiri Kovalsky
Modified: 2006-03-24 13:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Picture of unindented Java expression. (17.24 KB, image/jpeg)
2005-02-02 08:58 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2005-02-02 08:57:45 UTC
Development build #200502012121 of NetBeans 4.1
Windows XP, 1.5.0_02 build #05

Description:
============
Java expressions are not indented correctly if
"Reformat Code" action is called within editor
area. Please see attached screenshot to get what I
mean.

Steps to reproduce:
===================
1. Create new sample web project.
2. Type the following expression at line 24 of
index.jsp.

<%= new java.util.Date() %>

3. Right click editor area and choose "Reformat
Code" action.
4. The expression won't be indented properly.
Comment 1 Jiri Kovalsky 2005-02-02 08:58:50 UTC
Created attachment 20137 [details]
Picture of unindented Java expression.
Comment 2 Jiri Kovalsky 2005-02-02 09:09:39 UTC
Reassigning to Marek.
Comment 3 Marek Fukala 2005-02-09 15:47:19 UTC
fixed

Checking in JspFormatter.java;
/cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspFormatter.java,v
 <--  JspFormatter.java
new revision: 1.19; previous revision: 1.18
done
Comment 4 Jiri Kovalsky 2005-02-23 15:33:40 UTC
Verified in Beta build #200502222100 of NetBeans 4.1.