chenjunkai 6 年 前
コミット
ced0f722f9
1 ファイル変更2 行追加1 行削除
  1. 2 1
      controller/LangArea.py

+ 2 - 1
controller/LangArea.py

@@ -135,6 +135,8 @@ class LangAreaView(TemplateView):
             for l in res:
                 lk = l
                 lk = lk.replace('.', '_')
+                lk = lk.replace('\\n', '_')
+
                 lk = lk.replace(' ', '_')
                 lk = lk.replace('\\\'', '_')
                 lk = lk.replace('\'', '_')
@@ -143,7 +145,6 @@ class LangAreaView(TemplateView):
                 lk = lk.replace('’', '_')
                 lk = lk.replace('...', '_')
                 lk = lk.replace('…', '_')
-                lk = lk.replace('\\n', '_')
                 lk = lk.replace(':', '_')
                 lk = lk.replace(':', '_')
                 lk = lk.replace('(', '_')