mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 08:34:23 +08:00
Have .extract_text(chars, ...) ret. "" if no chars
... instead of returning `None`.
This commit is contained in:
+1
-1
@@ -357,7 +357,7 @@ def extract_text(
|
|||||||
):
|
):
|
||||||
chars = to_list(chars)
|
chars = to_list(chars)
|
||||||
if len(chars) == 0:
|
if len(chars) == 0:
|
||||||
return None
|
return ""
|
||||||
|
|
||||||
doctop_clusters = cluster_objects(chars, "doctop", y_tolerance)
|
doctop_clusters = cluster_objects(chars, "doctop", y_tolerance)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user