From 9e5b9d460416c42d6c703d57524681510c356309 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Fri, 8 Feb 2013 11:43:00 +0100 Subject: [PATCH] typo --- librarian/pyhtml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index d6168c9..df94cfd 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -183,7 +183,7 @@ class EduModule(Xmill): if 'url' in element.attrib: return tag('a', href=element.attrib['url'])(self, element) elif 'material' in element.attrib: - formats = re.split(r"[, ]+", Element.attrib.get('format', 'odt')) + formats = re.split(r"[, ]+", element.attrib.get('format', 'odt')) fmt_links = [] for f in formats: fmt_links.append(u'%s' % (self.options['urlmapper'].url_for_material(element.attrib['material'], f), f.upper())) -- 2.20.1