Pre-commit
This commit is contained in:
parent
3a6f023f0b
commit
1b0d1491be
2 changed files with 8 additions and 6 deletions
|
|
@ -736,7 +736,9 @@ class DocxConverter(HtmlConverter):
|
|||
while os.path.exists(unique_path):
|
||||
suffix = f"_{counter}"
|
||||
# Ensure base is short enough to add the suffix
|
||||
truncated_base = self.truncate_filename(base, max_length - len(suffix) - len(ext))
|
||||
truncated_base = self.truncate_filename(
|
||||
base, max_length - len(suffix) - len(ext)
|
||||
)
|
||||
unique_path = f"{truncated_base}{suffix}{ext}"
|
||||
counter += 1
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ DOCX_IMAGES_TEST_STRINGS = [
|
|||
"# Abstract",
|
||||
"# Introduction",
|
||||
"AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation",
|
||||
"GitHub_-_microsoft_markitdown__Python_tool_for_converting_files_and_office_documents_to_Markdown.png"
|
||||
"GitHub_-_microsoft_markitdown__Python_tool_for_converting_files_and_office_documents_to_Markdown.png",
|
||||
]
|
||||
|
||||
PPTX_TEST_STRINGS = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue