add proper End of Line character

cc @icewind1991 @DeepDiver1975 

superseeds #10687