Suppresses extra white space and other output, produced by CFML within the tag's scope.
<cfprocessingdirective suppressWhiteSpace = "Yes" or "No"> ... any CFML tags here ... </cfprocessingdirective>
cfcol,
cfcontent,
cfoutput,
cftable
Attribute |
Description |
---|---|
suppressWhiteSpace |
Required. Boolean indicating whether to suppress the white space and other output generated by the CFML tags within the cfprocessingdirective block. |
If a cfprocessingdirective
tag's scope includes another cfprocessingdirective
tag, the inner tag's settings override the enclosing tag's settings within the body of the inner tag. If the enclosing tag specifies settings that the inner tag does not, those settings remain in effect within the inner tag's scope.
cfprocessingdirective
settings do not apply to templates included by cfinclude
, cfmodule
, custom tag invocation, etc.
This example shows the use of a nested cfprocessingdirective
tag. The outer cfprocessingdirective
tag suppresses unnecessary whitespace during computation of a large table, the inner cfprocessingdirective
tag retains all whitespace to output the preformatted table.
<cfprocessingdirective suppressWhiteSpace = "Yes">
... any CFML tags here ... <cfprocessingdirective suppressWhiteSpace = "No"> <cfoutput>#interesting_stuff#</cfoutput> </cfprocessingdirective>