fix mixed indent and trailing whitespace