Fix issue where line breaks are not handled correctly for non-HTML content
Fix issue where line breaks are not handled correctly for non-HTML content