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]

Reply via email to