Message: 9
Date: Sun, 04 Dec 2005 20:02:28 -0800
From: Jim Ault <[EMAIL PROTECTED]>
Subject: Re: ANN: Remove double spaces--plugin
To: How to use Revolution <use-revolution@lists.runrev.com>
Message-ID: <[EMAIL PROTECTED]>
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.)
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to