Finalize newline handling