21541RE: [Clip] Re: continued problems with carriage returns
- Feb 18, 2011\R means any combination of CR/LF. \n is line feed, \r is carriage return.
(memory trick: no r in linefeed.) In Windows, you really need both, so you
really should replace \R with \r\n, which I do dozens of times in my clips
without a single extra line, ever. I suggest that if you are getting
doubles, you may have accidentally used \n\n without noticing it.
Mac/*nix/and Windows all use different line ends, and \R consumes them all,
while \r\n provides a clean result. It is the first thing I do in all my
clips, so that all line ends are in a known state. When I first started
writing clips, I also used \n only, but eventually that got me into trouble,
and my whole library had to be converted to use \r\n. (My library is now
From: email@example.com [mailto:firstname.lastname@example.org] On Behalf
Of Axel Berger
Sent: Friday, February 18, 2011 5:42 AM
Subject: Re: [Clip] Re: continued problems with carriage returns
> I have found that many times it helps to paste the text into NoteTabThat was exactly what I was going to suggest, but then I failed to find
> then select all (Ctrl+A) then hit Modify>Lines>Adjust Line Breaks.
the correct menu item. Thanks, Frank. Should a clip be run anyway, then
^!Replace "\R" >> "\n" WRASTI
in there might be better.
N.B: The replace string ought to be "\r\n" really, but I've found that
sometimes gives me two newlines in place of one while just "\n" always
works. I've never looked into it but just kept using the "wrong" term.
Dipl.-Ing. F. Axel Berger Tel: +49/ 2174/ 7439 07
Johann-Häck-Str. 14 Fax: +49/ 2174/ 7439 68
D-51519 Odenthal-Heide eMail: Axel-Berger@...
Deutschland (Germany) http://berger-odenthal.de
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>