replace some tabs to spaces and CRLF to LF