Skip to content

Commit

Permalink
Fix bug that leaves out first char found after width differential gre…
Browse files Browse the repository at this point in the history
…ater than x_tolerance
  • Loading branch information
jsfenfen committed Mar 10, 2016
1 parent e06133e commit 7cf92f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pdfplumber/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ def get_line_words(chars, 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)
Expand Down

0 comments on commit 7cf92f9

Please sign in to comment.