Fix tail empty line removal
Merge pull request #5 from tsing/master

Fix tail empty line removal