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,
--
Robin Hampshire
Robin@...