kdb: support new lines without carriage returns