On 21-3-06 18:40, Seth Dillingham wrote:
>
>On 3/21/06, Duncan Smeed said:
>
>>Not sure if the following is a bug or a feature but I note that
>>BBEdit (and Mailsmith) and your wrap functions give different results
>>as follows:
>
>I consider it a 'feature'.
I thought you might ;-)
>
>To me, "wrap to 72 characters" means that the maximum length of any
>line should be 72 characters. That is, no line over 72 charcters.
And to me but I'd never had a reason to check precisely what BBEdit and
Mailsmith's interpretation was.
>
>BBEdit and Mailsmith (which are built on the same text engine) always
>wrap to one character less than whatever you put in. You can count the
>results, it's always the same: create a line with exactly 72
>characters, and tell BBEdit or Mailsmith to wrap it to 72 characters,
>and and the last word will be bumped down to the next line. If you
>rewrap to 73 charcaters, it won't be.
From a purely selfish viewpoint I'd prefer consistency with
BBEdit/Mailsmith so that the wraps behave the same. But it's not a big
deal.
>
>I thought that perhaps it was counting the line-ending character (a
>stretch, but that was my best guess). However, if you switch to DOS
>line endings (which uses two characters: cr + lf), the behavior
>doesn't change.
Barebones must have had their reasons.
>
>Duncan, thank you for testing this! I really appreciate it.
No problem. Thanks for the implementations. Very useful.
Cheers,
Duncan
>
>Seth
>