Re: getting rid of multiple consecutive blanks ?

John Markley <[email protected]> Sat, 31 Oct 2009 22:28:22 -0400
Newsgroups gmane.comp.handhelds.palm.peditors
Message-ID <[email protected]>
Voytek -

   Two more changes you should make, to improve performance -

1) In all four pScripts there are two lines,

/&ifAbort@[$&==0]
/&ifScript@[$&>0,@@ @@]}

In the second line, change $&>0  to $&!=0

so that it reads    /&ifScript@[$&!=0,@@ @@]}

It should work ok either way, but for some reason I don't understand  
the original way seems to cause a glitch sometimes.

2)  Change the name of {LFdelete REGEXP::
to {LFREGEXP::
    or to some other name of your choice, or change the name of  
LFdelete to something else. There seems to be some crossover between  
the two LFdeletes even though the names are different - but apparently  
not different enough.  They cannot both start with "LFdelete".

   ~ John


------------------------------------

Latest pedit/pToolSet/LapTopHack at http://www.osuweb.net/~pc/pca/pc_all.zip
pedit/pToolSet/LapTopHack scripting info/resources at http://www.peditors.com
Peditors Forum http://groups.yahoo.com/group/peditors
Unsubscribe by writing to peditors-unsubscribe-hHKSG33Tihh4sT85+ipIM4ckdKdSAMto@public.gmane.org! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/peditors/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/peditors/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/