Remove trailing whitespace from API documentation