fixing line endigs

this is getting too complicated