Strip trailing whitespace before comments too.