Bug 46023 - Formatting gets confused by commented out lines
Summary: Formatting gets confused by commented out lines
Status: RESOLVED DUPLICATE of bug 46033
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-04 09:03 EST by Oyvind Harboe CLA
Modified: 2003-11-06 09:45 EST (History)
0 users

See Also:


Attachments
before formatting (42.72 KB, image/jpeg)
2003-11-04 09:03 EST, Oyvind Harboe CLA
no flags Details
After formatting (31.54 KB, image/jpeg)
2003-11-04 09:03 EST, Oyvind Harboe CLA
no flags Details
My settings (18.03 KB, application/octet-stream)
2003-11-06 09:26 EST, Oyvind Harboe CLA
no flags Details
New result (1.45 KB, text/plain)
2003-11-06 09:34 EST, Olivier Thomann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oyvind Harboe CLA 2003-11-04 09:03:03 EST
I'll include two pictures.
Comment 1 Oyvind Harboe CLA 2003-11-04 09:03:30 EST
Created attachment 6643 [details]
before formatting
Comment 2 Oyvind Harboe CLA 2003-11-04 09:03:47 EST
Created attachment 6644 [details]
After formatting
Comment 3 Oyvind Harboe CLA 2003-11-04 09:04:07 EST
Formatting works better if I select a larger region than the one that I 
actually want to format.
Comment 4 Olivier Thomann CLA 2003-11-05 09:31:12 EST
Do you have the new formatter enabled? See Preferences>Java>Work in progress.
Comment 5 Olivier Thomann CLA 2003-11-06 09:21:35 EST
Next time, you submit a PR, it would be much better to provide the source as a
string instead of an image. Could you please confirm that your initial
indentation is 8.
Comment 6 Oyvind Harboe CLA 2003-11-06 09:26:10 EST
>Could you please confirm that your initial indentation is 8.

I haven't changed the configuration, nor could I find anywhere to change the 
tab indentation.



Øyvind
Comment 7 Oyvind Harboe CLA 2003-11-06 09:26:40 EST
Created attachment 6680 [details]
My settings
Comment 8 Olivier Thomann CLA 2003-11-06 09:34:03 EST
Now you have this. See attachment. If this is fine for you, I will close it.
Comment 9 Olivier Thomann CLA 2003-11-06 09:34:38 EST
Created attachment 6681 [details]
New result
Comment 10 Olivier Thomann CLA 2003-11-06 09:35:16 EST
Change milestone.
Comment 11 Olivier Thomann CLA 2003-11-06 09:45:28 EST
In fact this is a duplicate of bug 46033. The line comment is causing problem in
the indentation level. The fact that the comment is moved to the proper
indentation should not be a problem.
Fixed as duplicate of bug 46033.

*** This bug has been marked as a duplicate of 46033 ***