Remove trailing whitespace from link definitions