From: Marcin Koziej Date: Tue, 11 Dec 2012 12:54:05 +0000 (+0100) Subject: Allow empty value in metadata X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/7ca18fc87049aa799d9d6c23ff216473c535b497?ds=inline;hp=-c Allow empty value in metadata --- 7ca18fc87049aa799d9d6c23ff216473c535b497 diff --git a/apps/catalogue/management/edumed.py b/apps/catalogue/management/edumed.py index 8a8f46db..25f30849 100644 --- a/apps/catalogue/management/edumed.py +++ b/apps/catalogue/management/edumed.py @@ -61,7 +61,7 @@ class Section(Tagger): class Meta(Tagger): - looks_like = re.compile(r"([^:]+): (.*)", re.UNICODE) + looks_like = re.compile(r"([^:]+): ?(.*)", re.UNICODE) def tag(self, pos): pos = self.skip_empty(pos)