[OT] reOrdering text

Robert Sneidar slylabs13 at me.com
Thu Jan 17 13:28:05 EST 2013

Hi Richmond. 

It's my understanding that cr is just a cr regardless of platform. I may have it backwards. If you want cross platform compatibility, use return as I believe it will be cr, cr + lf, or lf depending on the platform you are on. 

If you have to maintain file integrity across platforms, you may want to check the last two characters of the first line, and see if it is cr + lf. If not, store the last character of the line, and append that instead of the global constant cr. 


On Jan 17, 2013, at 2:34 AM, Richmond wrote:

> Thank you everyone for all the suggestions.
> I feel a bit stupid having done quite a bit of chunk matching and
> replacement + moving the end of "sentences" to the start and so forth,
> that it never occurred to me to use 'Line'.
> The only thing I wonder about now is how crossplatform-consistent cr is.
> Richmond.
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

More information about the use-livecode mailing list