remove trailing whitespaces from documentation