Open tomprogrammer opened 1 year ago
From all close points stored in i, j or k only the first one was used therefore the new function find_close_point only returns the first match if any.
i
j
k
find_close_point
Similar code is hoisted out of loops and branches and the while loops are more clearly expressed with for loops.
while
for
This is an alternative approach to #328, that leads to even better structured code in my opinion.
Hey!
As camelot is dead, we try to build a maintained fork at pypdf_table_extraction.
pypdf_table_extraction
Do you want to open the PR against that branch so that we can merge your improvement?
From all close points stored in
i
,j
ork
only the first one was used therefore the new functionfind_close_point
only returns the first match if any.Similar code is hoisted out of loops and branches and the
while
loops are more clearly expressed withfor
loops.This is an alternative approach to #328, that leads to even better structured code in my opinion.