chanjunkai 5 年之前
父節點
當前提交
77b0b3f599
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      controller/LangArea.py

+ 2 - 1
controller/LangArea.py

@@ -134,7 +134,8 @@ class LangAreaView(TemplateView):
                 elif en_kv[r['word_key']]:
                     res[r['word_key']] = en_kv[r['word_key']]
             for l in res:
-                content = content + '"' + l + '"="' + res[l] + '";\n'
+                content_val = res[l].replace('"', '\'')
+                content = content + '"' + l + '"="' + content_val + '";\n'
         elif type == 'android':
             res_qs = LangKeyModel.objects.filter(langvalmodel__la__id=id).\
                 values('word_key', 'langvalmodel__word_val').order_by('addTime')