Skip to main content
Inspiring
January 22, 2015
Answered

CF 11 White Space output suppression ?

  • January 22, 2015
  • 1 reply
  • 606 views

Hello,

I am having a dandy of a time figuring out why I cannot suppress a leading space in my

cf 11 output.   I have requirements that I must not have leading or trailing white space.

Not matter what I try, I get a leading space before the <html> tag.    Here is the code

I have tried.

<cfsetting enablecfoutputonly="true" showdebugoutput="no"/>

<cfprocessingdirective suppressWhiteSpace="true"><cfsilent>

<cfsavecontent variable="out_html"><cfoutput><html>

<body>

<p>

OK

</p>

</body>

</html></cfoutput></cfsavecontent>

</cfsilent><cfoutput>#out_html#</cfoutput>

</cfprocessingdirective>

Any help appreciated.

Thanks,

bob

    This topic has been closed for replies.
    Correct answer macslayer

    I have had Adobe confirm that there should not be white space, so this

    lead me to the Application.cfc with onRequest functions, and I think this

    is where the issue is.

    Thanks,

    Bob

    1 reply

    macslayerAuthorCorrect answer
    Inspiring
    January 22, 2015

    I have had Adobe confirm that there should not be white space, so this

    lead me to the Application.cfc with onRequest functions, and I think this

    is where the issue is.

    Thanks,

    Bob

    Carl Von Stetten
    Legend
    January 22, 2015

    You might also add a <cfcontent reset="yes"> right before the <cfoutput> tag.

    -Carl V.