Handle line breaks properly