Restoring line endings from initial close