The first line break is encoded as 0A (line feed) and the paragraph
return is encoded as OD (CR). The discretionary line break encoding
appears to be non-standard. My hex editor flags them (3 bytes) as "Bytes
are not valid UTF-8".
This may be problematic if you /need/ your mixture of line breaks.
Yes, that's why I was proposing that some other "non-blessed" character
like U+0085 might be able to function as a visible line break that does
not increment the line count.
Rick Gordon
--------------------
On March 28, 2018 at 9:18:02 PM [-0700],
Christopher Stone wrote in an email entitled
"Re: Newbie Question on Text Wrap":
Hey Rick,
This funkiness is “normal” for BBEdit, although the behavior is
reversed from the point where BBEdit started using linefeeds
internally instead of carriage returns.
If you unzip the attached AppleScript text file and drop it onto a
blank BBEdit window set for UTF8 and Unix (LF), you'll see the
behavior in action.
This happens because the first line break is a newline character
instead of a carriage return.
The behavior will be different if the first line break is a carriage
return and subsequent text contains one or more linefeeds.
The quick fix is to run “Normalize Line Endings” in the Text menu.
This may be problematic if you /need/ your mixture of line breaks.
I /think/ your success with BBEdit 9.x is /coincidental/ to the first
line break in the text, and I'm curious to know whether it's a LF or a CR.
--
Take Care,
Chris
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/bbedit.
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/bbedit.
___________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________
WWW: http://www.shelterpub.com
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.