From e71e4d92d30cc3dc88f7fe6ccb5d4b10866ed499 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Wed, 14 Nov 2012 09:48:47 +0100 Subject: [PATCH] Fix dictionary auto-tagging --- apps/catalogue/management/edumed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/catalogue/management/edumed.py b/apps/catalogue/management/edumed.py index 55269d1e..250eccb7 100644 --- a/apps/catalogue/management/edumed.py +++ b/apps/catalogue/management/edumed.py @@ -226,7 +226,7 @@ returns auto-tagged text pos += 1 if pos >= len(lines): break - + return toxml(content) dc_fixed = { @@ -315,6 +315,7 @@ def mark_dictionary(content): elif db >= 1: de = i content[db:de] = [Container('slowniczek', *slowniczek)] + break elif db >= 0: if isinstance(e, Paragraph): m = is_dictentry.match(e.line) -- 2.20.1