Commit 48c49514 authored by Jerome Flesch's avatar Jerome Flesch

Frontend: PEP8

Signed-off-by: Jerome Flesch's avatarJerome Flesch <jflesch@openpaper.work>
parent 0676d87d
......@@ -251,8 +251,9 @@ class JobPageBoxesLoader(Job):
boxes = set()
for line in line_boxes:
for word in line.word_boxes:
if word.content.strip() == "" or (word.position[0][0] == 0
and word.position[0][1] == 0):
if (word.content.strip() == "" or
(word.position[0][0] == 0 and
word.position[0][1] == 0)):
# XXX(Jflesch): Tesseract 3.03 (hOCR) returns big and
# empty word boxes sometimes (just a single space
# inside). They often match images, but not always.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment