Counting Lines

J. Landman Gay jacque at hyperactivesw.com
Sun Jan 12 18:10:12 EST 2014


On 1/12/14, 4:35 PM, Paul Foraker wrote:

> Here is the raw Data as copied from Firefox in Gmail and pasted into BBEdit
> (which, curiously, discards the bullets in the list):
> ==========
> Wait List
> On: Jan 9, 2014 @ 12:28 PM
> IP: 98.207.89.163
>
>      First Name: That
>      Last Name: Guy
>      Address 1: 5427 Streetname
>      Address 2:
>      City: Newark
>      State/Province: CA
>      ZIP/Postal Code: 94560
>      Country: US
>      Phone Number: 408-555-1212
>      Email Address: somebody at yahoo.com
> ==========
>
> Counting the blank line, there are 14 lines in that data. When I copy it
> from Firefox to the Clipboard and then ask LC how many lines there are in
> the data, it comes back with 13 on my Mac. When I put it into a fld, the
> line count is 13.
>
> On my customer's PC, the line count = 14.

Paste it into BBEdit and show invisible characters to see what's there. 
It sounds like Gmail is putting some odd character into the empty line, 
one that doesn't register on a Mac as a line ending. If so, you can do a 
replace before processing the text.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list