> I'm building a CFC which will write a CFC.  It will do some
> processing, then output to my browser, the code in text form, for me
> to copy and paste into my editor to be modified.  The idea is for the
> CFC i'm building to do a lot of the grunt work I do,  then i spend my
> time doing the tweaks on the code.
>
> It's a bit like ORM but I build quite a few CFCs for fairly common
> purposes that don't always involve  a database.
>
> Here's my question:   how can I write a CFC method,  which will output
> formatted text?   I know there's <pre>  and <cfsavecontent>  but they
> aren't giving me the output with linefeeds etc.     What have I
> forgotten?    I know I did this once, a long time ago but I'm dashed
> if I can remember how i got the line feeds and formatting.

Since you're actually writing a non-HTML file, you'll need to include
the carriage returns and line feeds yourself, as appropriate: chr(13),
chr(10). The HTML PRE tag isn't going to help you here, that just
preserves formatting for HTML pages.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, onlin

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332442
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to