Remove trailing whitespace, gendocs