From: Marcin Koziej Date: Wed, 14 Nov 2012 08:48:47 +0000 (+0100) Subject: Fix dictionary auto-tagging X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/e71e4d92d30cc3dc88f7fe6ccb5d4b10866ed499?ds=sidebyside Fix dictionary auto-tagging --- 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)