Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351335 - Copy and pasting arrays causes formatting issues
Summary: Copy and pasting arrays causes formatting issues
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 10:29 EDT by Missing name CLA
Modified: 2020-05-14 10:16 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2011-07-06 10:29:49 EDT
Build Identifier: 20110615-0604

If you copy and paste code that contains a formatted array structure, your code will lose its formatting when pasted.  The pasted code doesn't follow any standard formatting practices.

I consider it a major bug because copying and pasting is a common feature and it's broken.  I find it takes less time to just retype the code as opposed to copy/pasting and fixing the formatting. 

Reproducible: Always

Steps to Reproduce:
Copy the below code and maintain the tabular formatting.

$a = array(
	array(
		'a',
		'b',
		'c'
	),
	array(
		'e',
		'f',
		'g'
	)
);

Paste into a PDT project.  The formatting will change to:

$a = array(
array(
				'a',
				'b',
				'c'
),
array(
				'e',
				'f',
				'g'
)
);
Comment 1 Zhongwei Zhao CLA 2011-09-06 11:55:45 EDT
fixed in head
Comment 2 Sylvia Tancheva CLA 2011-10-18 08:45:59 EDT
Verified. 
Ilina Stefanova