CR & LF Line endings

31 views
Skip to first unread message

Gil Dawson

unread,
May 20, 2020, 4:25:14 PM5/20/20
to bbe...@googlegroups.com
Hi--

I managed to create a BBEdit text document that has both CRs and LFs for line endings.  BBEdit 13.0.6 displays it as a mess.  Although, if I copy from the BBEdit window and paste into this-here Apple Mail window, it looks fine.

Easy enough for me to convert all the (character id 13)s into (character id 10)s; then the BBEdit window looks fine.

Yet I wonder: have I overlooked a switch in BBEdit that would have fixed it for me?

--Gil

P.S. -- Here's how I made the text document that looks a mess:

property aScript : alias POSIX file "/Users/gil/Gil's Stuff/Projects/GilWare/... .scpt"

tell application "Script Editor" to set aScriptText to ((the text of (open aScript)) as text)
tell application "BBEdit" to make new text window with properties {contents:aScriptText}

Here's a screenshot of the BBEdit window:


The upside-down red question marks are all 0x0D.

--Gil

Patrick Woolsey

unread,
May 20, 2020, 4:30:42 PM5/20/20
to bbe...@googlegroups.com
On 5/20/20 at 4:02 PM, G...@GilDawson.com (Gil Dawson) wrote:

>I managed to create a BBEdit text document that has both CRs and LFs for line endings. [...]
>
>Yet I wonder: have I overlooked a switch in BBEdit that would have fixed it for me?


In such a situation, Text -> Normalize Line Endings is your
friend. :-)


Regards

Patrick Woolsey
==
Bare Bones Software, Inc. <https://www.barebones.com/>

Reply all
Reply to author
Forward
0 new messages