From 185d883281e9fac550dffb2dddb86c522471bfe7 Mon Sep 17 00:00:00 2001 From: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Date: Sun, 14 Jul 2019 11:48:01 +0200 Subject: [PATCH] Do not write end of doc lines in split_wiki Fix #9 --- nlputils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nlputils.py b/nlputils.py index e72dfa4..0d1c9a7 100644 --- a/nlputils.py +++ b/nlputils.py @@ -45,7 +45,7 @@ def split_wiki(path,lang): if len(title)>150: continue if f: f.close() f = (dest/f'{title}.txt').open('w') + elif l.startswith(''): continue else: f.write(l) f.close() return dest -