Bug 46689 - Code formatter always inserts a space in front of the '-' unary operator
Summary: Code formatter always inserts a space in front of the '-' unary operator
Status: VERIFIED FIXED
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-14 14:05 EST by Olivier Thomann CLA
Modified: 2003-11-20 12:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2003-11-14 14:05:50 EST
Using latest, the code formatter always insers a space in front of the '-' unary
operator even if the option to insert space before unary operator is set to
false. It should be done only of the preceeding token is a minus or an equal.
Comment 1 Olivier Thomann CLA 2003-11-14 14:10:07 EST
Will be fixed today.
Comment 2 Olivier Thomann CLA 2003-11-14 14:15:20 EST
It should olny do it when the preceeding token is '-'. '=' has no impact.
Comment 3 Olivier Thomann CLA 2003-11-14 14:38:48 EST
Fixed and released in HEAD.
Regression test added.
Comment 4 David Audel CLA 2003-11-20 12:40:31 EST
Verified.