Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8435379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:53:56+00:00 2026-06-10T06:53:56+00:00

Consider test.cfm file with the following content: <html> <body> <cfif foo EQ bar> <cfset

  • 0

Consider test.cfm file with the following content:

<html>
    <body>
        <cfif foo EQ bar>
            <cfset test = "something" />
        </cfif>
        <p>Hello!</p>
    </body>
</html>

When run in the browser, the source code of the output of this file will look like this:

<html>
    <body>



        <p>Hello!</p>
    </body>
</html>

Is there any way to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:53:58+00:00Added an answer on June 10, 2026 at 6:53 am

    Is there any way to fix this?

    There’s nothing to fix – the HTML is perfectly valid and functional.

    If your issue is the size of request, use gzip encoding.

    If your issue is reading the source for debugging/etc, use developer tools such as Firebug/etc.

    However, general things you should be doing to improve maintainability (which at the same time also reduces whitespace output) are:

    1) Move anything that isn’t display logic out of your views.

    2) Convert display logic to functions and custom tags as appropriate, which both make it easier to prevent/control output.

    To prevent unwanted content being output, you can:

    • Wrap the entire section in cfsilent, to ensure nothing gets output.

    • Enable enablecfoutputonly attribute of cfsetting then only use cfoutput around things you want to be output.

    • Always set output=false on component and function tags.

    • When you want to selectively output some text, wrap non-tag non-output segments in CFML comments <!---…---> (e.g. useful for preventing newline output in custom tags)

    (I never bother with cfprocessingdirective, everything mentioned above solves the issues better.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider such function: function Test($foo, $bar) { ... } We can call it: Test
Consider this text file: TEST FILE : test #No match #No match Run grep
Consider the following Java code: public class Test { private Foo< String, String >
consider the following: var service_call_array = { 3 : 'test', 4 : 'more of
Consider the following line: readonly private string TARGET_BTN_IMG_URL = @\\ad1-sunglim\Test\; In this line, why
Consider the following test case: public class Main { static int a = 0;
Consider the following test function: testError :: (Error e, MonadError e m) => Bool
Consider the following code: [Test] public void WidgetTest() { foreach (Widget widget in widgets)
I encountered this problem while solving a practice test Consider the following code written
Consider the following test snippet: // act AutoResetEvent workDoneEvent = new AutoResetEvent(false); ThreadPool.QueueUserWorkItem(delegate {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.