House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

paragraphformat()

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Chad Gray
05/16/2008 12:03 PM

I take text in with a standard <textarea> tag and I try using paragraphFormat() to display on on my display page I don't get the carriage returns. I type into text area: Black Cyan Magenta Yellow And paragraphFormat outputs this in the HTML. Black  Cyan  Magenta  Yellow   <P> Why didn't it use <br />'s ??

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Barney Boisvert
05/16/2008 12:08 PM

Because BR tags aren't paragraph tags.  It's paragraphFormat, not newlineAsHtmlFormat.  It's simple to replace newlines with BR tags, if that's what you want. cheers, barneyb ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Bobby Hartsfield
05/16/2008 12:57 PM

Instead of paragraphformat(str)... use #rereplace(str, chr(13), '<br />', 'all')# .:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com > And paragraphFormat outputs this in the HTML. > Black  Cyan  Magenta  Yellow   <P> > > Why didn't it use <br />'s ?? >


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference