Modified GetNewLine routine; fixes #3