From ba9e4a6e312b56bbbb80dcd26a7fe12b6b82ce59 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: Wed, 19 Jun 2024 18:09:16 +0800 Subject: [PATCH] linedis --- LunaTranslator/LunaTranslator/rendertext/webview.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/LunaTranslator/LunaTranslator/rendertext/webview.py b/LunaTranslator/LunaTranslator/rendertext/webview.py index 75a2b03a..45869647 100644 --- a/LunaTranslator/LunaTranslator/rendertext/webview.py +++ b/LunaTranslator/LunaTranslator/rendertext/webview.py @@ -179,6 +179,12 @@ class TextBrowser(QWidget, dataget): fm, fs, bold = self._getfontinfo(origin) text = self.gen_html(text, fm, fs, bold, atcenter, color) + _id_wrap = f"luna_{uuid.uuid4()}" + text = f"""