thanks
-Kevin Marino
----------------------
Webmaster - HealthObjects
[EMAIL PROTECTED]
-----Original Message-----
From: Jamie Jackson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 1:56 PM
To: CF-Talk
Subject: Re: Paragraphformat tag and the like
On Wed, 17 Mar 2004 12:28:55 -0500, in cf-talk you wrote:
>Question.
>
>I have an issue where when I use the CF paragraphformat function my last
>line gets a <p></p>, even if I trim the textarea field first.
I think trim handles whitespace, but not control characters. You might
need to do something like this instead of trim():
<cfscript>
function superTrim (str) {
return rereplace(str, "([[:cntrl:]]|[[:space:]])+$, "", "all");
}
</cfscript>
<cfoutput>
#paragraphFormat(superTrim(myQuery.myField))#
</cfoutput>
Jamie
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

