What about
repeat until cr & cr is not in theText
replace (cr & cr) with cr in theText
end repeat
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Submit your software products to http://www.quickestpublisher.com and
get found!
If you sent me an e-mail before 8th July and haven't got a reply yet,
please send me a reminder.
On 7 aug 2009, at 22:02, François Chaplais wrote:
wouldn't it turn cr & cr & cr & cr into cr & cr ?
Le 7 août 09 à 20:54, Peter Brigham MD a écrit :
On Aug 7, 2009, at 8:08 AM, François Chaplais wrote:
<snip>
put the number of lines of theText into n
repeat with i = n down to 2
get line i of theText
if it is empty and line (i-1) of theText is empty then
delete line i of theText
end if
end repeat
<snip>
Couldn't you do this part faster with
replace cr & cr with cr in theText
-- Peter
_______________________________________________
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