Re: [WebDNA] Post-Parse Script to remove extra returns.
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 101950
interpreted = N
texte = --Apple-Mail-90-85083156Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitThanks,It sounds like Post-Parse Script is not the way I wanted to go. I think this way would produce less problems anyways.Thanks again,d.> I had some weirdness awhile back with post-parse when I was trying > to do this same thing -- I can't remember what specifically (might > be in the archives -- but I bailed on post-parse and ended up doing > as Brian suggests, except that I put [getchars > start=1&end=&trim=both][grep search=[%0D%0A][%0D%0A%09]*&replace= > %0D] at the very top and [/grep][/getchars] at the very bottom on > all pages. Works like a charm. I'd be interested to see if you get > post-parse working as 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:>> [grep search=[%0D%0A][%0D%0A%09]*&replace=%0D]>> [WEBDNA_TEMPLATE_RESULTS]>> [/grep]>> Make sure you do lots of testing, particularly with forms, and >> especially forms that use textarea fields.>> Basically, this grep finds any consecutive runs of carriage >> returns, line feeds and tabs, and replaces them with a single >> carriage return.>> Brian Fries>> BrainScan Software>> On Feb 5, 2009, at 3:52 PM, World Wide Art wrote:>>> This should be an easy one...>>>>>> How would I use the Post-Parse script to remove the extra returns >>> 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>>>>>>>>> >>>>> --------------------------------------------------------->> 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/>> ---------------------------------------------------------> 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/World Wide Art, Art Gallery and Custom Framingquestions@world-wide-art.comDisney Preferred Animation Art GallerySpecializing in Limited Editions by Today's Top Artists and CustomConservation Framing.http://www.world-wide-art.com1-800-518-8453 or 1-510-538-8453--Apple-Mail-90-85083156Content-Type: multipart/mixed;boundary=Apple-Mail-91-85083158--Apple-Mail-91-85083158Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printableThanks,
It =sounds like Post-Parse Script is not the way I wanted to go. I think =this way would produce less problems =anyways.
Thanks again,
d.
I had =some weirdness awhile back with post-parse when I was trying to do this =same thing -- I can't remember what specifically (might be in the =archives -- but I bailed on post-parse and ended up doing as Brian =suggests, except that I put [getchars =start=3D1&end=3D&trim=3Dboth][grep =search=3D[%0D%0A][%0D%0A%09]*&replace=3D%0D] at the very top and =[/grep][/getchars] at the very bottom on all pages. Works like a charm. =I'd be interested to see if you get post-parse working as expected. =-Dan
On Thu, 5 Feb 2009 16:44:21 -0800
Brian Fries <
dna@brainscansoftware.com> =wrote:
I haven't used this in the =post-parse script, but I use it on most of my .tpl =pages:
[grep =search=3D[%0D%0A][%0D%0A%09]*&replace=3D%0D]
[WEBDNA_TEMPLATE_RESULTS]
[/grep]
Make =sure you do lots of testing, particularly with forms, and = especially forms that use textarea =fields.
Basically, this grep =finds any consecutive runs of carriage returns, line feeds and =tabs, and replaces them with a single carriage =return.
Brian =Fries
BrainScan =Software
On Feb 5, 2009, at =3:52 PM, World Wide Art wrote:
This should be an easy =one...
How would I use the Post-Parse =script to remove the extra returns that are put into a page during =processing?
Thanks,
d.
World Wide Art, Art Gallery and =Custom Framing
questions@world-wide-art.com<=/a>
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
<World-Wide-Art.vcf>
---------------------------------------------------------
This message is sent to you =because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
old =archives: http://dev.webdna.us/TalkLi=stArchive/
---------------------------------------=------------------
This message is sent to you because you are =subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, =E-mail to: <talk-leave@webdna.us>
archives=: http://mail.webdna.us/l=ist/talk@webdna.us
old archives: http://dev.webdna.us/TalkLi=stArchive/
World Wide Art, =Art Gallery and Custom Framing
Disney Preferred Animation Art Gallery
Specializing in =Limited Editions by Today's Top Artists and =Custom
Conservation =Framing.
1-800-518-8453 or 1-510-538-8453
=--Apple-Mail-91-85083158Content-Disposition: attachment;filename=World-Wide-Art.vcfContent-Type: text/directory;x-unix-mode=0644;x-mac-type=54455854;name="World-Wide-Art.vcf"Content-Transfer-Encoding: quoted-printableBEGIN:VCARD=0D=0AVERSION:2.1=0D=0AN:;;;;=0D=0AADR;INTL;WORK:;;20628=20=Rustic=20Drive;Castro=20Valley;CA;94546;USA=0D=0A=TEL;PREF;VOICE:800-518-8453=0D=0ATEL;WORK;VOICE:510-538-8453=0D=0A=EMAIL;PREF;INTERNET:admin@world-wide-art.com=0D=0A=EMAIL;PREF;INTERNET:questions@world-wide-art.com=0D=0AORG:World=20Wide=20=Art,=20Inc.=0D=0AURL:http://www.world-wide-art.com=0D=0A=URL:http://www.world-wide-art.com=0D=0AUID:vuQXE79=0D=0A=REV:20070112T131644=0D=0AEND:VCARD=0D=0A=--Apple-Mail-91-85083158Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: 7bit--Apple-Mail-91-85083158----Apple-Mail-90-85083156--
Associated Messages, from the most recent to the oldest:
--Apple-Mail-90-85083156Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitThanks,It sounds like Post-Parse Script is not the way I wanted to go. I think this way would produce less problems anyways.Thanks again,d.> I had some weirdness awhile back with post-parse when I was trying > to do this same thing -- I can't remember what specifically (might > be in the archives -- but I bailed on post-parse and ended up doing > as Brian suggests, except that I put [getchars > start=1&end=&trim=both][grep search=[%0D%0A][%0D%0A%09]*&replace= > %0D] at the very top and [/grep][/getchars] at the very bottom on > all pages. Works like a charm. I'd be interested to see if you get > post-parse working as 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:>> [grep search=[%0D%0A][%0D%0A%09]*&replace=%0D]>> [WEBDNA_TEMPLATE_RESULTS]>> [/grep]>> Make sure you do lots of testing, particularly with forms, and >> especially forms that use textarea fields.>> Basically, this grep finds any consecutive runs of carriage >> returns, line feeds and tabs, and replaces them with a single >> carriage return.>> Brian Fries>> BrainScan Software>> On Feb 5, 2009, at 3:52 PM, World Wide Art wrote:>>> This should be an easy one...>>>>>> How would I use the Post-Parse script to remove the extra returns >>> 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>>>>>>>>> >>>>> --------------------------------------------------------->> 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/>> ---------------------------------------------------------> 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/World Wide Art, Art Gallery and Custom Framingquestions@world-wide-art.comDisney Preferred Animation Art GallerySpecializing in Limited Editions by Today's Top Artists and CustomConservation Framing.http://www.world-wide-art.com1-800-518-8453 or 1-510-538-8453--Apple-Mail-90-85083156Content-Type: multipart/mixed;boundary=Apple-Mail-91-85083158--Apple-Mail-91-85083158Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printableThanks,
It =sounds like Post-Parse Script is not the way I wanted to go. I think =this way would produce less problems =anyways.
Thanks again,
d.
I had =some weirdness awhile back with post-parse when I was trying to do this =same thing -- I can't remember what specifically (might be in the =archives -- but I bailed on post-parse and ended up doing as Brian =suggests, except that I put [getchars =start=3D1&end=3D&trim=3Dboth][grep =search=3D[%0D%0A][%0D%0A%09]*&replace=3D%0D] at the very top and =[/grep][/getchars] at the very bottom on all pages. Works like a charm. =I'd be interested to see if you get post-parse working as expected. =-Dan
On Thu, 5 Feb 2009 16:44:21 -0800
Brian Fries <
dna@brainscansoftware.com> =wrote:
I haven't used this in the =post-parse script, but I use it on most of my .tpl =pages:
[grep =search=3D[%0D%0A][%0D%0A%09]*&replace=3D%0D]
[WEBDNA_TEMPLATE_RESULTS]
[/grep]
Make =sure you do lots of testing, particularly with forms, and = especially forms that use textarea =fields.
Basically, this grep =finds any consecutive runs of carriage returns, line feeds and =tabs, and replaces them with a single carriage =return.
Brian =Fries
BrainScan =Software
On Feb 5, 2009, at =3:52 PM, World Wide Art wrote:
This should be an easy =one...
How would I use the Post-Parse =script to remove the extra returns that are put into a page during =processing?
Thanks,
d.
World Wide Art, Art Gallery and =Custom Framing
questions@world-wide-art.com<=/a>
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
<World-Wide-Art.vcf>
---------------------------------------------------------
This message is sent to you =because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l=ist/talk@webdna.us
old =archives: http://dev.webdna.us/TalkLi=stArchive/
---------------------------------------=------------------
This message is sent to you because you are =subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, =E-mail to: <talk-leave@webdna.us>
archives=: http://mail.webdna.us/l=ist/talk@webdna.us
old archives: http://dev.webdna.us/TalkLi=stArchive/
World Wide Art, =Art Gallery and Custom Framing
Disney Preferred Animation Art Gallery
Specializing in =Limited Editions by Today's Top Artists and =Custom
Conservation =Framing.
1-800-518-8453 or 1-510-538-8453
=--Apple-Mail-91-85083158Content-Disposition: attachment;filename=World-Wide-Art.vcfContent-Type: text/directory;x-unix-mode=0644;x-mac-type=54455854;name="World-Wide-Art.vcf"Content-Transfer-Encoding: quoted-printableBEGIN:VCARD=0D=0AVERSION:2.1=0D=0AN:;;;;=0D=0AADR;INTL;WORK:;;20628=20=Rustic=20Drive;Castro=20Valley;CA;94546;USA=0D=0A=TEL;PREF;VOICE:800-518-8453=0D=0ATEL;WORK;VOICE:510-538-8453=0D=0A=EMAIL;PREF;INTERNET:admin@world-wide-art.com=0D=0A=EMAIL;PREF;INTERNET:questions@world-wide-art.com=0D=0AORG:World=20Wide=20=Art,=20Inc.=0D=0AURL:http://www.world-wide-art.com=0D=0A=URL:http://www.world-wide-art.com=0D=0AUID:vuQXE79=0D=0A=REV:20070112T131644=0D=0AEND:VCARD=0D=0A=--Apple-Mail-91-85083158Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: 7bit--Apple-Mail-91-85083158----Apple-Mail-90-85083156--
World Wide Art
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:
Date comparison using showif (2003)
Form Data, Back Button and 6.0.1 Patch (2005)
Attention eCommerce Sites (deadline 12/12) (1997)
[addlineitems] display (1997)
IIS Brain Dead (1998)
Suffix or Line? (1999)
More DateMath problems (1997)
WebCatalog 2.0.1 for Windows released! (1997)
Max Record length restated as maybe bug (1997)
Associative lookup style? (1997)
How is it done? (1998)
Big Databases (1997)
Can a database get stomped by simultaneous access? (1997)
IIS4b2 and WebCatalog b19 (1997)
Press Release hit the NewsWire!!! (1997)
[subtotal] problems -- help? (1998)
webCatalog and Stocks (1998)
Problem (1997)
[WebDNA] Storing time data in a database (2016)
question... no field names? (2002)