Adding line breaks through conditions