Added command line option to keep trailing newlines