Also strip trailing whitespaces from latex documents