From b8acb61be648d552dc5b44b98fc70514770fe125 Mon Sep 17 00:00:00 2001 From: Pushkar Nimkar Date: Sat, 11 Apr 2020 15:18:21 +0530 Subject: [PATCH] [ TextEdges ] allow single non-empty char textline In TextEdges.generate function, updating criteria of selection of textline to atleast one non white-space character. Currently, this is set to two due to to greater than one condition. --- camelot/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camelot/core.py b/camelot/core.py index 3ea2c5e..8893b68 100644 --- a/camelot/core.py +++ b/camelot/core.py @@ -128,7 +128,7 @@ class TextEdges(object): rows. """ for tl in textlines: - if len(tl.get_text().strip()) > 1: # TODO: hacky + if len(tl.get_text().strip()) >= 1: # TODO: hacky self.update(tl) def get_relevant(self):