NEW DATE! Bugzilla will undergo maintenance 2024-03-28 18h00 CET. Bugzilla will be placed in read-only mode at that time.

Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 531574 - [formatter] avoid "double spaces" around expression operators
Summary: [formatter] avoid "double spaces" around expression operators
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-23 04:35 EST by Thierry BLIND CLA
Modified: 2020-05-14 11:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry BLIND CLA 2018-02-23 04:35:10 EST
Hi,

1. edit active formatter profile, go to the "White Space" tab, check everything under Expressions -> Assignments and Expressions -> Operators
2. look at the preview, you'll see too many spaces around some expression operators:

<?php
$a =  - 4 +  - 9;
$b = $a ++  /  -- $number;
$c += 4;
$value = true && false;
?>

Thierry.
Comment 1 Eclipse Genie CLA 2018-02-23 05:06:48 EST
New Gerrit change created: https://git.eclipse.org/r/118014
Comment 3 Thierry BLIND CLA 2018-02-28 09:43:09 EST
Fixed.