From bc006746dd023a9a0e845a245598b03ffe0f1caf Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Fri, 12 Jun 2020 20:24:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20dinglehopper:=20Replace=20XXX=20?= =?UTF-8?q?with=20an=20actual=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/dinglehopper/cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qurator/dinglehopper/cli.py b/qurator/dinglehopper/cli.py index ea0c9bb..81acb41 100644 --- a/qurator/dinglehopper/cli.py +++ b/qurator/dinglehopper/cli.py @@ -56,9 +56,8 @@ def gen_diff_report(gt_in, ocr_in, css_prefix, joiner, none): if isinstance(gt_in, ExtractedText): gt_id = gt_in.segment_id_for_pos(g_pos) if g is not None else None ocr_id = ocr_in.segment_id_for_pos(o_pos) if o is not None else None - # XXX note that deletions and inserts only produce one id + None, UI must - # support this, i.e. display for the one id produced - # XXX otherwise, it should always display for BOTH ids + # Deletions and inserts only produce one id + None, UI must + # support this, i.e. display for the one id produced gtx += joiner + format_thing(g, css_classes, gt_id) ocrx += joiner + format_thing(o, css_classes, ocr_id)