The CF admin setting helps but does not completely solve
whitespace issues. (Look at the source for these forum pages, for
example..)
Also, beware of people who tell you to strip the whitespace
off after the fact by manipulating CF output as though it were a
string.
Put this at the top of your Application.cfm or
Application.cfc:
<CFSETTING EnableCFOutputOnly = "yes">
This means that nothing makes it to the page unless it is
inside <CFOUTPUT> tags or in WriteOutput ().
This is good practice anyway because it encourages you to
separate output code from logic and makes you more conscious of
whitespace as you code.
Finally, for XML to some programs or the <DOCTTYPE>
declaration to IE know that the output must be immediately after
the first <CFOUTPUT> with no whitespace of any type.
IE:
<CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
...
works but
<CFOUTPUT>
<?xml version="1.0" encoding="UTF-8"?>
...
doesn't.