Bug 69283 - Line separator
Summary: Line separator
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-07-05 07:26 EDT by David Pérez CLA
Modified: 2007-06-22 10:04 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 David Pérez CLA 2004-07-05 07:26:22 EDT
I have existing .java files with standard Windows line separator "\r\n".
When I edit it with Eclipse, line separator for modified lines are changed for
"\n".  This confuses me, because if I leave these lines as before, when
comparing with the latest version in SourceSafe, differences are reported (the
line separators).

This didn't happen in Eclipse 2.1

Couldn't it use the same line separator used originally in the file?
Comment 1 Dani Megert CLA 2004-07-13 09:38:57 EDT
>Couldn't it use the same line separator used originally in the file?
That would be the idea.

Can you add more details:
- which build?
- which editor is used to open the file?
- what does "edit" mean e.g. open *.java file, add space, save?

Please reopen after answering above questions.
Comment 2 David Pérez CLA 2004-07-15 04:21:52 EDT
I've done some checks and seems to work ok.
I'll report if I see something strange.
Comment 3 Dani Megert CLA 2007-06-22 09:59:11 EDT
Get rid of deprecated state.
Comment 4 Dani Megert CLA 2007-06-22 10:04:29 EDT
.