Enter & Preserve UNIX linefeeds on Mac OSX

J. Landman Gay jacque at hyperactivesw.com
Fri Dec 6 00:52:01 EST 2002


Sannyasin Sivakatirswami <katir at hindu.org> wrote:

> After careful testing it appears that Revolution is taking the  "cr" 
> that was introduced into the file by Supercard and swapping it out for 
> char(13) when the file is saved.
> 
> put tTemplate into URL "file:index.shtml"
> 
> results in a file with no char (10) in the locations where they should 
> be!

If you use url "file" you get the automatic line-endings translations. 
To keep the line endings intact with no translation when writing to 
disk, use "binfile" instead:

  put tTemplate into URL "binfile:index.shtml"

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




More information about the Use-livecode mailing list