Re: Whitespace Woes

2005-03-24 Thread Claude Schneegans
could you explain why it would be a good idea to call a custom tag within a cfoutput tag? I didn't say it was a good idea. Rather I was asking why it would be a bad idea? -- ___ REUSE CODE! Use custom tags; See

RE: Whitespace Woes

2005-03-24 Thread Dave Watts
Not sure! could you explain why it would be a good idea to call a custom tag within a cfoutput tag? One reason that occurs to me offhand would be if you're using CFSETTING to only output things that are explicitly within CFOUTPUT. I'm not sure why people think it's a bad idea to use CFML

Re: Whitespace Woes

2005-03-23 Thread Andrew Grosset
it's not a good idea to call any tag within a CFOUTPUT tag Why not gracious Lord? Not sure! could you explain why it would be a good idea to call a custom tag within a cfoutput tag? ~| Logware (www.logware.us): a new and

Re: Whitespace Woes

2005-03-23 Thread Barney Boisvert
How about: cfoutput query=myQuery tr td#id#/td td#name#/td tdl:link page=view id=#id#view/l:link/td /tr /cfoutput Some hypothetical context: the site uses SEF urls, and the l:link tag takes care of creating the A tag with the SEF url embedded. cheers, barneyb On Wed, 23 Mar 2005

RE: Whitespace Woes

2005-03-22 Thread Gaulin, Mark
The standard answer for this question is Did you check any application.cfm files? -Original Message- From: Jim McAtee [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 4:10 PM To: CF-Talk Subject: Whitespace Woes CF5/IIS5 I have a CFML tag constructed to produce as little white

Re: Whitespace Woes

2005-03-22 Thread Barney Boisvert
CFOUTPUT carries across includes and tags for enableCFOUTPUTonly processing. So if the tag is called within a CFOUTPUT block, your CFSETTING tag will have no effect. Since that info is outside the scope of what the tag can possibly know, you're better off skipping CFSETTING and only using

Re: Whitespace Woes

2005-03-22 Thread Jim McAtee
Application.cfm is entirely within a cfsilent block as well. - Original Message - From: Gaulin, Mark [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, March 22, 2005 2:16 PM Subject: RE: Whitespace Woes The standard answer for this question is Did you check any

Re: Whitespace Woes

2005-03-22 Thread Jim McAtee
I think that's it. Thanks Barney. - Original Message - From: Barney Boisvert [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, March 22, 2005 2:18 PM Subject: Re: Whitespace Woes CFOUTPUT carries across includes and tags for enableCFOUTPUTonly processing. So

Re: Whitespace Woes

2005-03-22 Thread Andrew Grosset
CF5/IIS5 I have a CFML tag constructed to produce as little white space as possible - another way is to use this custom tag: StripWhiteSpace.cfm !--- = --- CFSETTING ENABLECFOUTPUTONLY=YES!--- Suspend whitespace output ---

Re: Whitespace Woes

2005-03-22 Thread Barney Boisvert
Ironically, this tag has exactly the problem I illustrated, and consequently will usually end up rendering a bunch of extra whitespace itself. cheers, barneyb On Tue, 22 Mar 2005 16:34:08 -0400, Andrew Grosset [EMAIL PROTECTED] wrote: CF5/IIS5 I have a CFML tag constructed to produce as

Re: Whitespace Woes

2005-03-22 Thread Jim McAtee
=.../cfoutput /cfif Can I capture the output of that called tag and place it into the tagout string variable? - Original Message - From: Jim McAtee [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, March 22, 2005 2:25 PM Subject: Re: Whitespace Woes I think that's

Re: Whitespace Woes

2005-03-22 Thread Barney Boisvert
CFSAVECONTENT will do exactly what you need. If the output is going to take a lot of steps to create, you might want to look at not using raw string concatenation. Check http://www.barneyb.com/blog/archives/2004_12.jsp#000250 for a couple methods for avoiding it. cheers, barneyb On Tue, 22 Mar

Re: Whitespace Woes

2005-03-22 Thread Andrew Grosset
Ironically, this tag has exactly the problem I illustrated, and consequently will usually end up rendering a bunch of extra whitespace itself. cheers, barneyb Hmmm I can't give you an example but using MX6.1 and with strengthmode on maximum it will eliminate 99% of whitespace and output

Re: Whitespace Woes

2005-03-22 Thread Barney Boisvert
If you call the tag within a CFOUTPUT tag, then you'll get a few extra lines of whitespace above the whitespace-suppressed content. The actual suppression won't be affected, but the tag itself will generate a few extra lines. If it's not within a CFOUTPUT tag, then it won't put those extra few

Re: Whitespace Woes

2005-03-22 Thread Andrew Grosset
me thinks it's not a good idea to call any tag within a CFOUTPUT tag...at least I'd try not to if at all possible. Andrew. If you call the tag within a CFOUTPUT tag, then you'll get a few extra lines of whitespace above the whitespace-suppressed content. The actual suppression won't be

Re: Whitespace Woes

2005-03-22 Thread Barney Boisvert
In general, I'd agree. But that's not a reason to make your custom tags dependant on that fact, particularly one whose purpose is to reduce whitespace. http://www.spike.org.uk/blog/index.cfm?mode=entryentry=CC663650-D565-E33F-3DA8032FED9A0DC8 Spike's got a nice method for ensuring that your

Re: Whitespace Woes

2005-03-22 Thread Claude Schneegans
it's not a good idea to call any tag within a CFOUTPUT tag Why not gracious Lord? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks.

RE: whitespace woes

2002-10-25 Thread BEN MORRIS
I've had success when outputting CSV data w/ using cfcontent, and then cfabort to avoid outputting any junk. [EMAIL PROTECTED] 10/24/02 05:08PM Did you check for something in application.cfm? -Original Message- From: Will Stalder [mailto:skith_diphi;hotmail.com] Sent: Thursday,

Re: whitespace woes

2002-10-24 Thread cf-talk
Quick shot in the dark (I have a meeting to run to) but I think that having the CFOUTPUT on a line of it's own could be causing your problem. Try something like this: CFOUTPUThtml Instead of : CFOUTPUT html Let me know if that works (or at least cuts down on your whitespace). Remember, the

Re: whitespace woes

2002-10-24 Thread Ian Lurie
Try this: 1 CFPROCESSINGDIRECTIVE SUPPRESSWHITESPACE=YesCFSETTING ENABLECFOUTPUTONLY=Yes SHOWDEBUGOUTPUT=NoCFIF NOT ISDEFINED(do)CFOUTPUThtmlbodyform/form/body/html/CFOUTPUT CFELSEIF do EQ xmlCFOUTPUT?xml version=1.0?!DOCTYPE Foo SYSTEM http://www.foo.com/bar.dtd; 2 Foo/Foo 3 /CFOUTPUT 4 /CFIF 5

Re: whitespace woes

2002-10-24 Thread Jeffry Houser
Just for the record, CFMX does not add the space. I had some problems recently developing something on CFMX and uploading to a CF5 server. : grumbles: What you may want to try is to generate everything as a variable and then output the variable. I'm not sure if this will help with the

Re: whitespace woes

2002-10-24 Thread Brook Davies
Try wrapping the entire thing in a cfsavecontent tag and then trim the output: CFSAVECONTENT VARIABLE=XMLOUTPUT CFPROCESSINGDIRECTIVE SUPPRESSWHITESPACE=YesCFSETTING ENABLECFOUTPUTONLY=Yes SHOWDEBUGOUTPUT=No CFIF NOT ISDEFINED(do) CFOUTPUT htmlbodyform/form/body/html /CFOUTPUT CFELSEIF do EQ

Re: whitespace woes

2002-10-24 Thread Jerry Johnson
What is in the Application.cfm file doing to you? Could the whitespace get added in there? Jerry Johnson [EMAIL PROTECTED] 10/24/02 03:13PM I'm having with trouble with ColdFusion and extraneous whitespace. And yes, I've done my Google searching. The problem is that I'm trying to output an

RE: whitespace woes

2002-10-24 Thread Mark A. Kruger - CFG
Try this: CFSETTING ENABLECFOUTPUTONLY=Yes SHOWDEBUGOUTPUT=No CFIF NOT ISDEFINED(do) CFOUTPUT htmlbodyform/form/body/html /CFOUTPUT CFELSEIF do EQ xml Cfontent type=text/xmlCFOUTPUT?xml version=1.0?!DOCTYPE Foo SYSTEM http://www.foo.com/bar.dtd; Foo/Foo/CFOUTPUT

Re: whitespace woes

2002-10-24 Thread Jochem van Dieten
Will Stalder wrote: I'm having with trouble with ColdFusion and extraneous whitespace. Which version? Jochem ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription:

RE: whitespace woes

2002-10-24 Thread Rob Rohan
I feel you pain my brother. Put it all on one line. -Original Message- From: Will Stalder [mailto:skith_diphi;hotmail.com] Sent: Thursday, October 24, 2002 12:13 PM To: CF-Talk Subject: whitespace woes I'm having with trouble with ColdFusion and extraneous whitespace. And yes, I've

RE: whitespace woes

2002-10-24 Thread Mosh Teitelbaum
Any chance the space is being added in the Application.cfm file? -- Mosh Teitelbaum evoch, LLC Tel: (301) 625-9191 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: Will Stalder [mailto:skith_diphi;hotmail.com] Sent: Thursday, October

Re: whitespace woes

2002-10-24 Thread S . Isaac Dealey
If you've got an application.cfm file that's prepending to your xml output page, you might want to wrap the entire application.cfm in cfsilent/cfsilent -- and make sure there's no extra carriage returns at the top or bottom. Isaac Certified Advanced ColdFusion 5 Developer www.turnkey.to

RE: whitespace woes

2002-10-24 Thread Gaulin, Mark
Did you check for something in application.cfm? -Original Message- From: Will Stalder [mailto:skith_diphi;hotmail.com] Sent: Thursday, October 24, 2002 3:13 PM To: CF-Talk Subject: whitespace woes I'm having with trouble with ColdFusion and extraneous whitespace. And yes, I've done my

Re: whitespace woes

2002-10-24 Thread Sean A Corfield
Do you have an Application.cfm file that is being run perhaps? On Thursday, Oct 24, 2002, at 12:13 US/Pacific, Will Stalder wrote: I'm having with trouble with ColdFusion and extraneous whitespace. And yes, I've done my Google searching. The problem is that I'm trying to output an XML file,

RE: whitespace woes

2002-10-24 Thread Will Stalder
As a few people suggested, I played around with the application.cfm file - I had not realized that it was appended to the beginning of my regular .cfm file. Interestingly enough, application.cfm didn't contain any excess spaces, but it did have several non-outputting tags each on their own

RE: whitespace woes

2002-10-24 Thread Shawn Kernes
To: CF-Talk Subject: RE: whitespace woes Did you check for something in application.cfm? -Original Message- From: Will Stalder [mailto:skith_diphi;hotmail.com] Sent: Thursday, October 24, 2002 3:13 PM To: CF-Talk Subject: whitespace woes I'm having with trouble with ColdFusion

RE: whitespace woes

2002-10-24 Thread Clint Tredway
If you are using CF 4.5 or above you can use the cfsilent tag to not output anything. Clint ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: