Sometimes a run contains only some of a link

Sometimes a CTRun contains only a few characters of a link. I found this often happens when the text is centered. These commits fix that problem.