> 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

on closefield
  if word 1 of the target is "field"  then
    put replaceText(target," +"," ") into target
  end if
  pass closefield
end closefield

HTIAUAAYSHOI
Jim Ault
Las Vegas
(hope this is as useful as anything you've seen, heard or imagined  :-)

On 12/4/05 6:27 PM, "Jim Hurley" <[EMAIL PROTECTED]> wrote:

> Maybe it's just me. Maybe I  have a heavy thumb, but I  always get a
> number of  multiple spaces in my  text.
> 
> (Witness the above line.)
> 
> Hence the following VERY simple plugin--in the message box:
> 
> go stack url "http://home.infostations.net/jhurley/RemoveDoubles.rev";
> 
> It will replace doubles spaces in a text field with single spaces
> without affecting the formatting.
> 
> Jim
> _______________________________________________
> use-revolution mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to