lineEnding setting added

Now replacing \r\n, \r and \n with whatever we chose to be the
lineEnding setting
lineEnding is \n by default