>Perform a Trim and CFSETTING around so the cfset doesn't grab any space.

I put the Trim around the cfset but it still showed the space.
It's suggested that it's a line feed.  I've not used cfsetting before.  I put it just before the <cfoutput query>.  I'd think that cfsetting would get rid of that too.

>
>
>
>   _____  
>
>From: Daniel Kessler [mailto:[EMAIL PROTECTED]
>Sent: 14 July 2004 15:07
>To: CF-Talk
>Subject: extra space : or spacey
>
>
>
>I have some display code that's inserting an extra space and I can't
>figure out the reason.  Before every variable output, but after the
>delimeter there's a space
>
>#del#
><cfset outputVars =
>"dateFormat(dateAdded,'short')|plan_to_attend|firstname|middlename|lastname|
>degree|year1|employer|workaddress">
><!--- items cut --->
><cfset outputVars = listtoArray(outputVars,"|")>
>  <cfloop index="i" from="1" to="#arrayLen(outputVars)#">
><cfset theVar = "#outputVars[i]#">
>#evaluate(theVar)##del#
></cfloop>
>
>From this, I get:
>| 7/14/04| 1| supah| e| dupah| 1| superhero| girlieboy| 1966| 10472
>outter_space ct| suite 204| scaggsville| md| 20723| 301-405-5555|
>[EMAIL PROTECTED]|
>
>If I just output year1 before the listtoarray:
>#del##year1##del#, then I get the proper |1991| without the extra space.
>
>Can someone please explain to me how these spaces are being added?
>It seems very odd to me.
>
>thanks.
>
>--
>Daniel Kessler
>
>Department of Public and Community Health
>University of Maryland
>Suite 2387 Valley Drive
>College Park, MD  20742-2611
>301-405-2545 Phone
>www.phi.umd.edu
>
>   _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to