Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REReplace

Status
Not open for further replies.

danarashad

Programmer
Nov 2, 2006
115
US
I am trying to create line breaks in some output, using the rereplace tag. Here's what I have.

<cfoutput>#REReplace(sum.activities,"\n","<br>","all")#</cfoutput>

Here's what I would like the output to read!
Running
Jumping
Fishing
Football
Track
Where it puts a line break when the user presses return. But whats happening is, it's breaking after the letter N.
Actual output.
Ru

i
g Jumpi
g Fishi
g Football Track
Help. \n is aline feed character. I've tried \r, for return.
 
instead of rereplace try
Code:
#replace(sum.activities, chr(10), "<br />", "All")#
 
Thanks I figured it out like 5 mintues later. Thanks though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top