Fix writing multi-line deleted items