cleanup whitespace, fix link separators