This bit of python code should work for what you want:
Code:
>>> f = open('test', 'rb+wb')
>>> text = f.read()
>>> text = text.replace('\n\r', '\n')
>>> text = text.replace('\r', ' ')
>>> text = text.replace('\n', '\n\r')
>>> f.seek(0)
>>> f.truncate(0)
>>> f.write(text)
>>> f.close()
\n\r is the standard newline indicator for Windows system. We replace it with \n which is used on Unix systems. This is so we can replace all single occurances of \r with a single space. Then we put the \n's back to \n\r's.