framework-one/fw1 — pull request #251 by agentfitz (2014-05-20 16:17:18+00:00)
Title: remove leading whitespace on calls to renderData()

In Adobe CF, if enabled whitespace management is not checked, which may often be the case, calls to renderData will output many lines of whitespace before the desired content (json, xml, plain text).

To address this situation, to the renderDataWithContentType() method, I have added the following line just before the return statement:
getPageContext().getCfOutput().clearAll();

Sorry for the two commits, the first one was adding the patch, and the second one is removing some extra spaces I accidentally introduced into the source.