Unneccessary Whitespace

 Wednesday March 7, 2007  ·  11 views  ·  0 comments
A little bit of a gripe here, but why do we have to explicitly tell ColdFusion not to output tons of useless whitespace, line breaks and tab characters? Would there ever be a valid case in which that 'data' would be usefull?

My questions come from a recent post by Ray Camden, "Generating XMLfrom a CFC? Watch out for whitespace" reminding us that CFCs will generate 'whitespace' when processing a Component Constructor, unless you use output="false" in the <cfcomponent> tag. Why wouldn't Adobe make that the default behavior and force it's developer to say "Yes, I want non-sensical whitespace pushed to the output buffer!", it seems so obvious.

The extraneous whitespace adds to the content length of a page and in some cases (as Ray pointed out), can add technical challenges to your projects.<cfcomponent>

Comments


  • There are no comments.
 

Leave Feedback


Name


Email
Email will not be displayed

Website
( Optional )

Feedback

Post your feedback, HTML will not be rendered, only plain text.


Security

Answer the math problem below.
= 
Subscribe
Receive emails when others submit comments