On Tue, 23 May 2000, Sivakatirswami wrote:
> aloha,
>
> If I download a file from the web to disk with this:
> on mouseUp
> Ask file "Name your file."
> put URL (field "tURLtoDownLoad") into URL ("file:"&it)
> put the result into it
> answer it
> end mouseUp
>
> and open the file in BBEdit it will be rendered on screen as
>
> line1
> line2
> line3
> line4
> etc
> and it will render also the same way if you import it into a supercard text
> field BUT
>
> If I download it straight to a text field in MC:
>
> on mouseUp
> put URL (field "tURLtoDownLoad") into fld tText
> put the result into it
> answer it
> end mouseUp
>
> it appears in the text field as
>
> line1 line2 line3 line4 etc
> with no line breaks
>
> why is this? and how can I change the behaviour so the line breaks are
> rendered on screen?
The problem is the line delimitors. What you get depends on what
format the original data was in, and to some extent on the HTTP server
settings. Most likely what you need to do is replace "crlf" with "cr".
If the file was originally a Mac file and wasn't translated by the
HTTP server (or the program you used to put the file up on the
server), you may need to replace "numToChar(13)" with
"numToChar(10)".
Regards,
Scott
> Hinduism Today
>
> Sivakatirswami
> Editor's Assistant/Production Manager
> www.HinduismToday.com
> [EMAIL PROTECTED]
>
>
>
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.