Barry
 
i think you have this all mixed up as to where you think the whitespace is coming from
 

<cfsilent>

<cfimport prefix="content" taglib="contents">

</cfsilent>

 

this will only create one line of whitespace anyway cause CFIMPORT is like calling a CFSET or something.  All your doing is creating the reference, not actually importing the actual lib.

 

<content:_test>

boo

</content:_test>

 

 

this is where your whitespace will be coming from.  when you call <content:_test> your basically calling it the same way as a custom tag, and everything inside that call will be included

 

 

lets look at your page first

 

////////////////////////////////////////////////////////////////////////

<cfprocessingdirective suppresswhitespace="Yes">

<cfsilent>

<cfimport prefix="content" taglib="contents">

</cfsilent>

<content:_test>

boo

</content:_test>

</cfprocessingdirective>

/////////////////////////////////////////////////////////////////////////

 

this should not produce whitespace for this page, but I am pretty sure that the <cfprocessingdirective suppresswhitespace="Yes"> tag is processed on a "per page" basis so it wont cascade into your custom tags and what ever

 

now lets look at your custom tag

 

////////////////////////////////////////////////////////////////////////

<cfsetting enablecfoutputonly="Yes">

<cfif thistag.executionMode is "start">

<cfoutput>(one line created)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

            <title>Untitled</title>

</head>

<body>

</cfoutput>(one line created)

</cfif>

<cfsetting enablecfoutputonly="no">(one line created)

 (one line created)

<cfsetting enablecfoutputonly="Yes">

<cfif thistag.executionMode is "end">

<cfoutput>(one line created)

</body>

</html>

</cfoutput>(one line created)

</cfif>

<cfsetting enablecfoutputonly="no">

////////////////////////////////////////////////////////////////////////

 
The above tag would produce 6 (or there abouts) empty lines of output
 
Starting to make more sense?
 
 
Steve


 

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to