Remove trailing whitespace and change tab indent by double space indent