Reindent and remove extra whitespace.