From 7ca18fc87049aa799d9d6c23ff216473c535b497 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Tue, 11 Dec 2012 13:54:05 +0100 Subject: [PATCH] Allow empty value in metadata --- apps/catalogue/management/edumed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1