Line ending shenanigans