add trailing newlines to EOF