fix #142, edit lines ending