fix newline in format_whole_file
Merge pull request #65 from hansifer/master

fixed newline code in format_whole_file