fix issue where line break tags are not displayed correctly