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:

WebCat2b13MacPlugIn - [showif][search][/showif] (1997) [table] strange behaviour REAL solution (2003) Searching for a Blank Field (2000) Need WebDNA that crashes server for testing (2000) MySQL (2003) RE: File Uploads (1998) bug in wn searching NT version? (1997) [interpret] inside the db field? (1997) Nested tags count question (1997) WebCat for Site Search? (1997) Setting up WebCatalog with Retail Pro data (1996) Running a store on BOTH http and https (1998) SKU lookup (1997) Unknown error: OrderNotCreated (1997) Quitting WebMerchant ? (1997) Re:2nd WebCatalog2 Feature Request (1996) OFF TOPIC: help wanted (1997) Grant, please help me ... (1997) WebCat 4.0 & WebMerchant (2000) RE: PIXO support (1997)