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. 

Bob


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@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to