Are you sure an empty line means a new document and not just a new sentence?