'Given raw data read from a file, massage it suitable for the edit window'

def TranslateLoadedData(self, data):

    if (data[:250].find('\r') == (-1)):
        win32ui.SetStatusText('Translating    from    Unix    file    format    -    please    wait...', 1)
        return re.sub('\r*\n', '\r\n', data)
    else:
        return data
