On Thu, Aug 5, 2010 at 7:13 AM, Robert Harrison <rob...@austin-williams.com> wrote: > I've moved output function into CFC's; thus I'm using output="true". Only > problem is the CFC is outputting whitespace where all the logic is now. > > How can I suppress the white space in an output CFC?
Write the CFC entirely in cfscript (which generates no spurious whitespace) and use writeOutput() around the stuff you want to output. But, as others have noted, really the 'best practice' is CFCs for logic, CFM pages for output - mainly since you don't want to be mixing HTML (display) in with your logic. -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336034 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm