Fixed newline replacement in preview