Re: [WebDNA] Post-Parse Script to remove extra returns.

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 101949
interpreted = N
texte = I had some weirdness awhile back with post-parse when I was trying to do = this same thing -- I=20 can't remember what specifically (might be in the archives -- but I baile= d on post-parse and ended=20 up doing as Brian suggests, except that I put [getchars start=3D1&end=3D&= trim=3Dboth][grep=20 search=3D[%0D%0A][%0D%0A%09]*&replace=3D%0D] at the very top and [/grep][= /getchars] at the very bottom=20 on all pages. Works like a charm. I'd be interested to see if you get pos= t-parse working as=20 expected. -Dan On Thu, 5 Feb 2009 16:44:21 -0800 Brian Fries wrote: > I haven't used this in the post-parse script, but I use it on most of = my .tpl pages: >=20 > [grep search=3D[%0D%0A][%0D%0A%09]*&replace=3D%0D] > [WEBDNA_TEMPLATE_RESULTS] > [/grep] >=20 >=20 > Make sure you do lots of testing, particularly with forms, and especia= lly forms that use=20 >textarea fields. >=20 > Basically, this grep finds any consecutive runs of carriage returns, l= ine feeds and tabs, and=20 >replaces them with a single carriage return. >=20 > Brian Fries > BrainScan Software >=20 >=20 > On Feb 5, 2009, at 3:52 PM, World Wide Art wrote: >=20 >> This should be an easy one... >> >> How would I use the Post-Parse script to remove the extra returns =20 >> that are put into a page during processing? >> >> Thanks, >> d. >> >> World Wide Art, Art Gallery and Custom Framing >> questions@world-wide-art.com >> Disney Preferred Animation Art Gallery >> Specializing in Limited Editions by Today's Top Artists and Custom >> Conservation Framing. >> http://www.world-wide-art.com >> 1-800-518-8453 or 1-510-538-8453 >> >> >> >> >=20 >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Post-Parse Script to remove extra returns. (World Wide Art 2009)
  2. Re: [WebDNA] Post-Parse Script to remove extra returns. ("Dan Strong" 2009)
  3. Re: [WebDNA] Post-Parse Script to remove extra returns. (Brian Fries 2009)
  4. [WebDNA] Post-Parse Script to remove extra returns. (World Wide Art 2009)
I had some weirdness awhile back with post-parse when I was trying to do = this same thing -- I=20 can't remember what specifically (might be in the archives -- but I baile= d on post-parse and ended=20 up doing as Brian suggests, except that I put [getchars start=3D1&end=3D&= trim=3Dboth][grep=20 search=3D[%0D%0A][%0D%0A%09]*&replace=3D%0D] at the very top and [/grep][= /getchars] at the very bottom=20 on all pages. Works like a charm. I'd be interested to see if you get pos= t-parse working as=20 expected. -Dan On Thu, 5 Feb 2009 16:44:21 -0800 Brian Fries wrote: > I haven't used this in the post-parse script, but I use it on most of = my .tpl pages: >=20 > [grep search=3D[%0D%0A][%0D%0A%09]*&replace=3D%0D] > [WEBDNA_TEMPLATE_RESULTS] > [/grep] >=20 >=20 > Make sure you do lots of testing, particularly with forms, and especia= lly forms that use=20 >textarea fields. >=20 > Basically, this grep finds any consecutive runs of carriage returns, l= ine feeds and tabs, and=20 >replaces them with a single carriage return. >=20 > Brian Fries > BrainScan Software >=20 >=20 > On Feb 5, 2009, at 3:52 PM, World Wide Art wrote: >=20 >> This should be an easy one... >> >> How would I use the Post-Parse script to remove the extra returns =20 >> that are put into a page during processing? >> >> Thanks, >> d. >> >> World Wide Art, Art Gallery and Custom Framing >> questions@world-wide-art.com >> Disney Preferred Animation Art Gallery >> Specializing in Limited Editions by Today's Top Artists and Custom >> Conservation Framing. >> http://www.world-wide-art.com >> 1-800-518-8453 or 1-510-538-8453 >> >> >> >> >=20 >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ "Dan Strong"

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:

What am I doing wrong? (2000) Multiple prices (1997) New public beta available (1997) Some Advise needed (1997) RE: Help name our technology! (1997) RE: 2nd WebCatalog2 Feature Request (1996) [ModDate] & [ModTime] ? (1997) WebDNA on Intel Mac? (2006) webcat2b12 CGI -- Date comparisons (1997) SQLResult chokes on null values? (2006) WebCat2b13MacPlugin - [math][date][/math] problem (1997) SiteEdit Pro Update Announcement (1997) Grep is Broke (2004) Logging users (1998) WebDNA-Talk Digest mode broken (1997) WCS Newbie question (1997) Location of Webcat site in folder hierarchy (1997) using listfiles to build a database? (2000) Sorry WebDNA server not running ????? (2002) Problems with SELECT MULTIPLE (1999)