chanjunkai hace 5 años
padre
commit
77b0b3f599
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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')