fixing links with linebreaks