mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 16:40:24 +08:00
Fix bug that leaves out first char found after width differential greater than x_tolerance
This commit is contained in:
+1
-2
@@ -118,8 +118,7 @@ def extract_words(chars, x_tolerance=0, y_tolerance=0):
|
||||
if char["x0"] > (last_char["x1"] + tolerance):
|
||||
words.append(current_word)
|
||||
current_word = []
|
||||
else:
|
||||
current_word.append(char)
|
||||
current_word.append(char)
|
||||
|
||||
if len(current_word) > 0:
|
||||
words.append(current_word)
|
||||
|
||||
Reference in New Issue
Block a user