diff --git a/LunaTranslator/LunaTranslator/myutils/post.py b/LunaTranslator/LunaTranslator/myutils/post.py index af717b42..75bdbdea 100644 --- a/LunaTranslator/LunaTranslator/myutils/post.py +++ b/LunaTranslator/LunaTranslator/myutils/post.py @@ -33,7 +33,7 @@ def _2_f(line, args): dumptime = Counter() cntx = 1 lastc = None - for c in line: + for c in list(line) + [0]: if c != lastc: dumptime[cntx] += 1 lastc = c