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 137580 - Javascript code format doesn't work properly
Summary: Javascript code format doesn't work properly
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 15:19 UTC by polan
Modified: 2009-08-31 14:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Before envoking format (1.25 KB, text/plain)
2008-06-18 15:22 UTC, polan
Details
After invoking format (1.15 KB, text/plain)
2008-06-18 15:23 UTC, polan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description polan 2008-06-18 15:19:46 UTC
[Build 200806180005, JDK 1.6.0]

Yet another Javascript code formatting bug. See attached files.

In 'after.txt' file, the for cycles on 4th and 11th line are clearly misaligned. They won't align even if you invoke 
format again.
Comment 1 polan 2008-06-18 15:22:23 UTC
Created attachment 63003 [details]
Before envoking format
Comment 2 polan 2008-06-18 15:23:02 UTC
Created attachment 63004 [details]
After invoking format
Comment 3 Marek Fukala 2009-04-24 16:02:55 UTC
reproducible. Davide, can you please take care of javascript formatting issues? You are the only expert here.
Comment 4 Petr Pisl 2009-08-26 16:04:53 UTC
This is problem that the javascript formater doesn't reflect ; at all.
Comment 5 Petr Pisl 2009-08-31 14:49:14 UTC
I did an improvements in the formatter. 

It's in the change d503ab820085 ( http://hg.netbeans.org/web-main/rev/d503ab820085 ) and should be better now.