Fixed broken link detection for text containing new lines