Updated line breaks rendering logic