fix whitespaces and line breaks