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

Bug 387460

Summary: return key trims text
Product: [ECD] Orion Reporter: Richard Peach <richard.peach>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: chris.whitty, richard.peach, Silenio_Quarti
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Richard Peach CLA 2012-08-17 05:26:24 EDT
in a new file:
1. type (without quotes) "        helloworld"
2. move the cursor to here: "   |     helloworld"
3. press return/enter.
4. the result will be (without quotes):
"   "
"   helloworld"

The expected result (and the result when you do the same in eclipse) is:
"   "
"        helloworld"

Note: the same thing happens if you use tabs rather than spaces
Comment 1 Silenio Quarti CLA 2012-08-17 11:08:08 EDT
The behavior you described is for the text file editor in eclipse. The java editor has the same behavior of orion.

The only way to fix this is to have different strategies of indentation depending on the file type. Currently, this is not possible.
Comment 2 John Arthorne CLA 2015-05-05 15:48:20 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html
Comment 3 John Arthorne CLA 2015-05-05 16:01:38 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html