Michael> Actually, I usually get these strings from Windows UI
    Michael> components. A file containing '\r\n' is read in with '\r\n'
    Michael> being translated to '\n'. New user input is added containing
    Michael> '\r\n' line endings. The file is written out and now contains a
    Michael> mix of '\r\n' and '\r\r\n'.

So you need a translation layer between the UI component and your code.
Treat the component as a text file and perform the desired mapping.  Yes?

Skip
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to