ANN: Remove double spaces--plugin

Jim Hurley jhurley at infostations.com
Mon Dec 5 11:35:51 EST 2005


>
>Message: 9
>Date: Sun, 04 Dec 2005 20:02:28 -0800
>From: Jim Ault <JimAultWins at yahoo.com>
>Subject: Re: ANN: Remove double spaces--plugin
>To: How to use Revolution <use-revolution at lists.runrev.com>
>Message-ID: <BFB8FBD4.316E8%JimAultWins at yahoo.com>
>Content-Type: text/plain;	charset="US-ASCII"
>
>  > It will replace doubles spaces in a text field with single spaces
>>  without affecting the formatting.
>
>Another approach is to use :
>
>put replaceText(fld storyline," +"," ") into fld storyline
>
>which is the regular expression that replaces all runs of spaces with a
>single space.  The " +" says 'one or more spaces'
>Further... automation is possible for any field when it is closed.
>Simply add to a stack script, back script, or stack in use stack script

Jim,

Thanks for the tip.

If there if formatting in the field you might use:

    put replaceText(the htmlText of field 1," +"," ") into tText
   set the htmltext of field 1 to tText

Jim
(Seems that every Tom, Dick and Harry  is named Jim.)



More information about the Use-livecode mailing list