Convert tabs to spaces, remove trailing whitespace.