format whitespace and indentation