[ 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.
pull/130/head
Pushkar Nimkar 2020-04-11 15:18:21 +05:30
parent fcad5067b9
commit b8acb61be6
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class TextEdges(object):
rows. rows.
""" """
for tl in textlines: 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) self.update(tl)
def get_relevant(self): def get_relevant(self):