Have .extract_text(chars, ...) ret. "" if no chars

... instead of returning `None`.
This commit is contained in:
Jeremy Singer-Vine
2021-10-22 18:45:24 -04:00
parent 66fef89b67
commit cb9900b497
+1 -1
View File
@@ -357,7 +357,7 @@ def extract_text(
):
chars = to_list(chars)
if len(chars) == 0:
return None
return ""
doctop_clusters = cluster_objects(chars, "doctop", y_tolerance)