That will work in most browsers, Windows or otherwise, because they all seem 
to interpret chr(10) as enough for a newline even if the OS demands a cr-lf 
combination for a valid line break.

But if you're creating PDFs, you'll probably want writeOutput('some text 
here' & chr(10) & chr(13)) just to make sure that you're feeing it valid 
linefeeds. You may check the PDF documentation (what there is of it, anyway) 
to see exactly what character combo it wants for a newline. Generally, the 
character sets are as follows:

Mac: cr
Win: cr-lf
*NIX: lf

It's kinda twitchy, and a PITA, to get the characters just right... 
experiment and see what you come up with.

Laterz!

J

On 6/10/05, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> 
> <cfscript>
> writeOutput('text with newline' & chr(10));
> </cfscript>
> 
> that should do ya.
> 
> cheers,
> barneyb
> 
> On 6/10/05, James Taavon <[EMAIL PROTECTED]> wrote:
> > i want to be able to force a carriage return while getting output back 
> within a cfscript block. i have tried several combos, but nothing seems to 
> work. also using PDFLib if anyone is familiar with that as well.
> >
> 
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/




-- 
---------------
-------------------------------------
Buy SQLSurveyor!
http://www.web-relevant.com/sqlsurveyor
Never make your developers open Enterprise Manager again.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209213
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to