Fixed bug on line breaks being stripped in text mode