From 8a4b8680998912cd8824ef06fe40bebe3908c6b0 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: Thu, 16 May 2024 14:14:44 +0800
Subject: [PATCH] fix
---
LunaTranslator/LunaTranslator/gui/showword.py | 2 +-
LunaTranslator/files/anki/back.html | 14 +++++++++++---
LunaTranslator/files/anki/front.html | 14 +++++++++++---
3 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/LunaTranslator/LunaTranslator/gui/showword.py b/LunaTranslator/LunaTranslator/gui/showword.py
index c8bc066b..db68ec4d 100644
--- a/LunaTranslator/LunaTranslator/gui/showword.py
+++ b/LunaTranslator/LunaTranslator/gui/showword.py
@@ -193,7 +193,7 @@ class AnkiWindow(QWidget):
example = self.example.toPlainText()
ruby = self.ruby
fields = {
- "word": word,
+ "word": json.dumps(word),
"rubytext": ruby,
"explain": explain,
"example_sentence": example,
diff --git a/LunaTranslator/files/anki/back.html b/LunaTranslator/files/anki/back.html
index e6380587..4ddfc4f1 100644
--- a/LunaTranslator/files/anki/back.html
+++ b/LunaTranslator/files/anki/back.html
@@ -8,11 +8,19 @@
diff --git a/LunaTranslator/files/anki/front.html b/LunaTranslator/files/anki/front.html
index 0ec9d636..27d3404e 100644
--- a/LunaTranslator/files/anki/front.html
+++ b/LunaTranslator/files/anki/front.html
@@ -8,11 +8,19 @@