Hi Robin,
Assuming I understand correctly, you could use 10 which is the linefeed
character, or just use print instead of bput to output the text (which puts
a LF at the end of each line).
Regards,
Simon
On Thu, 05 Feb 2004 11:08:25 GMT, Robin Hampshire <robin@...>
wrote:
> I have a silly problem with creating text files from S-Base.
>
> If I create the following buffer contents and save them to a file:
>
> local carriage_rtn = @chr(13)
>
> fd = @openout filename
> buffer new b
> bput b, "First line of text"
> bput b, carriage_rtn
> bput b, "Second line of text"
> bput b, carriage_rtn
> buffer save b, fd, 0, @ext b
> close fd
> oscli "SetType " + filename + " text"
> buffer dispose b
>
> then the resulting file has @chr(13) as CRs, rather than LFs. This is
> fine for text editors, but when dragged into a dtp (Techwriter or OPro)
> the CRs are converted into Shift-Returns instead of Returns, making the
> whole file appear as one paragraph.
>
> What to do?
>
> Cheers,
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/