Re: Auto Wrap Text in <p></p>

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 56985
interpreted = N
texte = Thanks Rob! This works perfectly. On 3/18/04 11:22 AM, "Rob Marquardt" wrote: > Here's what I had used. Two returns create a paragraph, a single return does > a line break (in my case, the people entering the text used two returns so > paragraphs had a visible space between them while they were editing in the > textarea). Three statements are used, order is important. > > > [text]convertedText=[textFromTheTextarea][/text] > > [text]convertedText=[grep > search=%0D.%0D.(%0D.)*&replace=

][convertedText][/grep][/text] > > [text]convertedText=[grep > search=%0D%0D(%0D%0D)*&replace=

][convertedText][/grep][/text] > > [text]convertedText=[grep > search=%0D&replace=
][convertedText][/grep][/text] > > > For display, wrap the result in a paragraph: > >

[convertedText]

------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Auto Wrap Text in

    ( Clint Davis 2004)
  2. Re: Auto Wrap Text in

    ( Rob Marquardt 2004)
  3. Re: Auto Wrap Text in

    ( Clint Davis 2004)
  4. Re: Auto Wrap Text in

    ( Gary Krockover 2004)
  5. Auto Wrap Text in

    ( Clint Davis 2004)
Thanks Rob! This works perfectly. On 3/18/04 11:22 AM, "Rob Marquardt" wrote: > Here's what I had used. Two returns create a paragraph, a single return does > a line break (in my case, the people entering the text used two returns so > paragraphs had a visible space between them while they were editing in the > textarea). Three statements are used, order is important. > > > [text]convertedText=[textFromTheTextarea][/text] > > [text]convertedText=[grep > search=%0D.%0D.(%0D.)*&replace=

][convertedText][/grep][/text] > > [text]convertedText=[grep > search=%0D%0D(%0D%0D)*&replace=

][convertedText][/grep][/text] > > [text]convertedText=[grep > search=%0D&replace=
][convertedText][/grep][/text] > > > For display, wrap the result in a paragraph: > >

[convertedText]

------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Clint Davis

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2b15MacPlugin - [protect] (1997) template not found error (1998) Integrate login with phpBB or vBulletin (2006) [SHOWIF AND/OR] (1997) db merge problem (2002) RE: Template not found error messages (1997) Hard Questions ? (1997) RE: [WebDNA] multi-language sites in current versions of webdna? (2010) Bugs? What Bugs? was:Spawning Holdup? (2000) WebCat2b13 Command Reference Doc error (1997) Moment of Thanks (1997) WebCat2 several catalogs? (1997) Paranoid about serial numbers...not (1998) can WC render sites out? (1997) Exclamation point (1997) Bad creator codes which cause access denied error message (1997) My Eyes doth deceive me (2002) formatting dates from a field ... (1997) [WebDNA] crashing loop - SOLVED (2011) serial number generation (1997)