diff --git a/src/dinglehopper/cli.py b/src/dinglehopper/cli.py index 82ee3ce..43bfb2e 100644 --- a/src/dinglehopper/cli.py +++ b/src/dinglehopper/cli.py @@ -32,16 +32,12 @@ def gen_diff_report(gt_in, ocr_in, css_prefix, joiner, none, differences=False): # Set Bootstrap tooltip to the segment id if id_: - html_custom_attrs += 'data-toggle="tooltip" title="{}"'.format(id_) + html_custom_attrs += f'data-toggle="tooltip" title="{id_}"' if css_classes: - return '{html_t}'.format( - css_classes=css_classes, - html_t=html_t, - html_custom_attrs=html_custom_attrs, - ) + return f'{html_t}' else: - return "{html_t}".format(html_t=html_t) + return f"{html_t}" if isinstance(gt_in, ExtractedText): if not isinstance(ocr_in, ExtractedText):