I think that's it.  Thanks Barney.

----- Original Message ----- 
From: "Barney Boisvert" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Tuesday, March 22, 2005 2:18 PM
Subject: Re: Whitespace Woes


> CFOUTPUT carries across includes and tags for enableCFOUTPUTonly
> processing.  So if the tag is called within a CFOUTPUT block, your
> CFSETTING tag will have no effect.  Since that info is outside the
> scope of what the tag can possibly know, you're better off skipping
> CFSETTING and only using CFSILENT inside custom tags.  It might be
> overkill sometimes, but it's always guarenteed to work.
>
> cheers,
> barneyb
>
> On Tue, 22 Mar 2005 14:09:54 -0700, Jim McAtee 
> <[EMAIL PROTECTED]> wrote:
>> CF5/IIS5
>>
>> I have a CFML tag constructed to produce as little white space as
>> possible - or so I thought.  Basically, as shown bellow.  Much more
>> complex, including many queries, but the key is that only one 
>> <cfoutput>
>> block gets executed between the <cfsetting> tags.  The whole tag should
>> produce only about 50 characters of output.
>>
>> <cfsetting enablecfoutputonly="yes">
>> <cfinclude template="constants.cfm">
>> ....
>> <cfscript>
>> ....
>> </cfscript>
>> <cfif somecondition>
>>   <cfscript>
>>   ...
>>   </cfscript>
>>   <cfoutput><a href="...">...</a></cfoutput>
>> <cfelse>
>>   <cfscript>
>>   ...
>>   </cfscript>
>>   <cfoutput><a href="...">...</a></cfoutput>
>> </cfif>
>> ....
>> <cfsetting enablecfoutputonly="no">
>>
>> But the tag is producing a _lot_ of white space, both before and after 
>> the
>> executed <cfoutput> block, and I cannot figure out where it's coming 
>> from.
>> Everything within the cfinclude'd template shown above is itself 
>> contained
>> within a <cfsilent> block, as it only sets some variables.
> Donations & Support: http://www.houseoffusion.com/tiny.cfm/54 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:199705
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to