mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
reformatted code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
parent
bb12c96094
commit
e838818783
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user