mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-08 20:58:11 +00:00
docs: Remove deprecated call in custom_convert.py (#2447)
Update custom_convert.py export_to_document_tokens is deprecated so change it to export_to_doctags Signed-off-by: Jeremy Chen <github@jeremychen.email>
This commit is contained in:
2
docs/examples/custom_convert.py
vendored
2
docs/examples/custom_convert.py
vendored
@@ -205,7 +205,7 @@ def main():
|
||||
|
||||
# Export Document Tags format:
|
||||
with (output_dir / f"{doc_filename}.doctags").open("w", encoding="utf-8") as fp:
|
||||
fp.write(conv_result.document.export_to_document_tokens())
|
||||
fp.write(conv_result.document.export_to_doctags())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user