Fix html truncation and padding on links