Pull from driver-dev

This commit is contained in:
Kovid Goyal 2009-06-06 11:45:34 -07:00
commit 8a76c16d55

View File

@ -118,8 +118,9 @@ class TxtWriter(object):
return text
def unix_newlines(self, text):
text = text.replace('\r\n', '\n')
text = text.replace('\r', '\n')
text = text.replace('\r\n', ' ')
text = text.replace('\n', ' ')
text = text.replace('\r', ' ')
return text