Search the web
Sign In
New User? Sign Up
s-base · S-Base Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Carriage Returns / Line Feeds - @chr(13)   Message List  
Reply | Forward Message #619 of 1020 |
Re: [s-base] Carriage Returns / Line Feeds - @chr(13)

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/



Sun Feb 15, 2004 9:23 am

s-base@...
Send Email Send Email

Forward
Message #619 of 1020 |
Expand Messages Author Sort by Date

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) ...
Robin Hampshire
robinsbase
Offline Send Email
Feb 6, 2004
8:57 am

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...
Simon Glass
s-base@...
Send Email
Feb 15, 2004
9:23 am

In message <opr3em05yednezpa@bluewater> ... Thank you, Simon - that's exactly what I wanted. I had no idea that @chr(10) was a linefeed - none of the asci code...
Robin Hampshire
robinsbase
Offline Send Email
Feb 16, 2004
7:37 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help