Handle line breaks in the middle of the text using selections.