From: Marcin Koziej Date: Fri, 8 Feb 2013 10:43:00 +0000 (+0100) Subject: typo X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/9e5b9d460416c42d6c703d57524681510c356309?hp=aefd256d345c738415ce29eabd52afcf471dcfd7 typo --- 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()))