Re: Ascii number of return
Re: Ascii number of return
- Subject: Re: Ascii number of return
- From: Christopher Nebel <email@hidden>
- Date: Thu, 22 Oct 2009 19:07:32 -0700
On Oct 22, 2009, at 11:32 AM, Michelle Steiner wrote:
On Oct 22, 2009, at 11:26 AM, Yvan KOENIG wrote:
The two are used for years.
Looking in TextWrangler preferences we may read:
Default line breaks
Classic Mac (CR)
Unix (LF)
Windows (CRLF)
Yes, I know all that; I'm just pointing out that there's no
consistency involved. Some Mac apps use the classic Mac CR, and
some use the Unix LF. Even among Apple's own applications, that
inconsistency exists.
Re: Inconsistency in line separators: Yes, it exists. It's been there
for at least 8 years, or more depending on how you count. Have a
kewpie doll. There'd be little point in standardizing apps on one,
expecting everyone to settle on one is futile, they're both valid, and
you should be prepared to deal with both in your scripts. (Not to
mention CR-LF pairs and even Unicode's paragraph-separator character
if you're feeling generous. "paragraph" elements handle all of these.)
Re: Difficulty telling in a string literal which one you've got:
Clearly, you can't visually tell the difference between CR (\r) and LF
(\n), which is why we added a preference to display them as the escape
sequence. See AppleScript Editor > Preferences > Editing > Escape
tabs and line breaks in strings.
--Chris Nebel
AppleScript Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden