reformatted code

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
Peter Staar 2025-05-27 09:01:32 +02:00
parent bb12c96094
commit e838818783

View File

@ -213,9 +213,11 @@ def export_documents(
fw.write(ser_res.text) fw.write(ser_res.text)
else: else:
conv_res.document.save_as_html( conv_res.document.save_as_html(
filename=fname, image_mode=image_export_mode, split_page_view=True filename=fname,
image_mode=image_export_mode,
split_page_view=True,
) )
# Export Text format: # Export Text format:
if export_txt: if export_txt:
fname = output_dir / f"{doc_filename}.txt" fname = output_dir / f"{doc_filename}.txt"
@ -276,7 +278,8 @@ def convert( # noqa: C901
show_localization: Annotated[ show_localization: Annotated[
bool, bool,
typer.Option( typer.Option(
..., help="If enabled, the page images will show the bounding-boxes of the items." ...,
help="If enabled, the page images will show the bounding-boxes of the items.",
), ),
] = False, ] = False,
headers: str = typer.Option( headers: str = typer.Option(