From 4308a3dfb51848458f9310810eb15996b6aabd05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sun, 29 Sep 2024 19:26:17 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/ocrengines/baseocrclass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/ocrengines/baseocrclass.py b/LunaTranslator/LunaTranslator/ocrengines/baseocrclass.py index ffe4e15a..a4a96d98 100644 --- a/LunaTranslator/LunaTranslator/ocrengines/baseocrclass.py +++ b/LunaTranslator/LunaTranslator/ocrengines/baseocrclass.py @@ -136,7 +136,7 @@ class baseocr(commonbase): # 若无标注,则合并显示 boxs = [[0, 0, 0, 0, 0, 0, 0, 0]] textonly = self.space.join(texts) - texts = [textonly] + texts = ["\n".join(texts)] else: textonly = self.space.join(self.sort_text_lines(boxs, texts)) # 对齐box成4点格式