the best way i've found of eliminating whitespace was putting this in
onrequestend.cfm...

<!--- code to eliminate whitespace served --->
<cfscript>
// copy the current contents of out (which is what cfmx will send to
the browser at the end of processing)
pageContent = getPageContext().getOut().getString();
// now we have a copy, clear the out buffer
getPageContext().getOut().clearBuffer();
// tidy up - replace all white space that ends in an enter break, with
a single enter break
pageContent = reReplace( pageContent, "[[:space:]]+#chr( 13 )#",
"#chr( 13 )#" , "all" );
// send our cleaned content to the browser
writeOutput( pageContent );
getPageContext().getOut().flush();
// job done!
</cfscript>
<!--- / code to eliminate whitespace served --->


On Oct 28, 3:29 pm, modius <[EMAIL PROTECTED]> wrote:
> On Oct 27, 4:24 am, "Matt Williams" <[EMAIL PROTECTED]> wrote:
>
> > Thanks Jake. I ended up making several changes to various pages. The
> > container.cfc was the biggest offender. I added <cfsilent> around the
> > <cfset html = createObject("component",
>
> I suspect the biggest offender is yourself ;)  You cannot put custom
> tags inside of <cfoutput> statements without generating whitespace.
>
> FarCry uses <cfsetting cfenabledoutputonly="true" /> just about
> everywhere.  This means that whitespace is suppressed by default and
> requires you to explicitly declare things for output using
> <cfoutput>.  If you wrap your tags with <cfoutput> you will generate
> whitespace.
>
> Hope that helps,
>
> -- geoffhttp://www.daemon.com.au/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to