:: need to remove duplicate carriage returns from RT field using LScript

Hi all,

ok, i am adding an extra function to the discussion templates at work and i need to find a way to remove multiple CRs (@newline , chr(13) etc).

i am basically sending out a newsletter and just want XYZ # of chars and only single CRs to be output.

i have tried using evaluate and a replacesubstring LS function but it keeps erroring.

any ideas? i have tried as many ways that i can think of but everything doesnt seem to want to work…

Subject: :: need to remove duplicate carriage returns from RT field using LScript

Well, you could step through the rt field character by caracter and see if there are two or more CRs, LFs or combination in a rowAre you required to keep the formatting (e.g font changes ec.) of the fields?

If not, it might be easier to copy teh text of the rtf into a regular text field and proces that

Chris