Fix tab indents and remove trailing spaces.