Tweaked the text wrapping algorithm to account for manual line breaks