fix: ParsrConverter fails on pages without text (#3605)

* try to fix bug

* remove print

* leftover
This commit is contained in:
Stefano Fiorucci 2022-11-21 10:54:40 +01:00 committed by GitHub
parent 7e0aa82eb8
commit 5f62494105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,7 @@ class ParsrConverter(BaseConverter):
id_hash_keys,
)
tables.append(table)
if text[-1] != "\f":
if len(text) == 0 or text[-1] != "\f":
text += "\f"
if valid_languages: