Parse new lines in text objects correctly