• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF 11 White Space output suppression ?

Community Beginner ,
Jan 22, 2015 Jan 22, 2015

Copy link to clipboard

Copied

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

Views

469

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Jan 22, 2015 Jan 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

Votes

Translate

Translate
Community Beginner ,
Jan 22, 2015 Jan 22, 2015

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 22, 2015 Jan 22, 2015

Copy link to clipboard

Copied

LATEST

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

-Carl V.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation