Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351335

Summary: Copy and pasting arrays causes formatting issues
Product: z_Archived Reporter: Missing name <bryan>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: ganoro, silviya, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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