fix the problem of newline converted as spaces