From 66f05e309a4b3b7c98e8b9a8b1c6d42b11796562 Mon Sep 17 00:00:00 2001 From: xunbu Date: Thu, 28 Aug 2025 19:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=99=84=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docutranslate/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docutranslate/app.py b/docutranslate/app.py index 6e591f7..389f347 100644 --- a/docutranslate/app.py +++ b/docutranslate/app.py @@ -805,7 +805,7 @@ async def _perform_translation( for identifier, doc in attachment_object.attachment_dict.items(): try: # 'doc' is a Document object - attachment_filename = f"{doc.stem or identifier}.{doc.suffix}" + attachment_filename = f"{doc.stem or identifier}{doc.suffix}" attachment_path = os.path.join(temp_dir, attachment_filename) with open(attachment_path, "wb") as f: f.write(doc.content)