Page 1 of 1

<LF>-s are dropped on copy

Posted: Mon Nov 20, 2006 1:28 am
by AlexL
Hello.

When I press <Ctrl>C on a selected fragment during panel editing of Unix text file (that does not contain <CR>-s), the fragment is copied into clipboard without linefeeds. EDP v3.5.0.6-Beta.

Thank you.

Posted: Mon Nov 20, 2006 7:47 am
by psguru
This is by design: you get an exact copy of your text fragment, including linebreaks. If you didn't have LFs in the file, you are not going to get them in the clipboard.

Posted: Mon Nov 20, 2006 7:51 am
by AlexL
psguru wrote:This is by design: you get an exact copy of your text fragment, including linebreaks. If you didn't have LFs in the file, you are not going to get them in the clipboard.
You did not understand me. I have <LF>-s, but I don't have <CR>-s. In this case <LF>-s are not copied into clipboard.

Posted: Mon Nov 20, 2006 8:38 am
by psguru
No, I can't reproduce this. I tested a Unix file, and the text is copied with LFs only (try it with a binary editor, such as frhed).

Posted: Mon Nov 20, 2006 10:01 am
by AlexL
psguru wrote:No, I can't reproduce this. I tested a Unix file, and the text is copied with LFs only (try it with a binary editor, such as frhed).
1) You are right. Though I tried it with several editors, they had the same problem.
2) Is there any workaround? Let's say I want to paste into our simple notepad. I see several lines in EDP before copying (as it should be), but one long line in notepad after pasting (I'd like to see also several lines as in original text).

Posted: Mon Nov 20, 2006 11:10 am
by psguru
No, there's no workaround. It's not really a problem; this is how editors should work IMO: preserve the linebreaks.