Stripping CRLF from incoming html files
Dar Scott
dsc at swcp.com
Tue Nov 9 23:05:15 EST 2004
On Nov 9, 2004, at 8:55 PM, Sannyasin Sivakatirswami wrote:
> I tried
>
> replace CRLF with numToChar(10)
>
> but it didn't work
>
> I tried
>
> replace numToChar(13) with "" in tInputData
>
> it also didn't work
>
> I'm missing something really simple here.
Try this
replace CRLF with LF -- same effect as your second one above
That will remove all numToChar(13).
Then do this several times
replace (LF & LF) with LF
That will get rid of extra lines, leaving only one line. (I assume you
want the one line.)
Dar
****************************************
Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services
****************************************
More information about the use-livecode
mailing list