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 Rhinorhino 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
Joined
Nov 2, 2006
Messages
115
Location
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.

Similar threads

  • Locked
  • Question Question
Replies
2
Views
237
Replies
3
Views
197
  • Locked
  • Question Question
Replies
0
Views
117

Part and Inventory Search

Sponsor

Back
Top