Text output cleanup.

This commit is contained in:
John Schember 2009-06-06 07:34:01 -04:00
parent 1e072040ba
commit 91f6d6c46b

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