From: Radek Czajka Date: Mon, 11 Feb 2013 10:32:24 +0000 (+0100) Subject: no additional formats links if not needed X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/8be494f3ddda9f45ae3e454ec549e06f0eba9380?hp=a1e43b7bba2a0c7cf33280143bb49af3fef5d0d0 no additional formats links if not needed --- diff --git a/librarian/pyhtml.py b/librarian/pyhtml.py index 47bb1d7..64ac47f 100644 --- a/librarian/pyhtml.py +++ b/librarian/pyhtml.py @@ -196,8 +196,9 @@ class EduModule(Xmill): fmt_links = [] for f in formats[1:]: fmt_links.append(u'%s' % (make_url(f), f.upper())) + more_links = u' (%s)' % u', '.join(fmt_links) if fmt_links else u'' - return u"" % def_href, u' (%s)' % u' '.join(fmt_links) + return u"" % def_href, u'%s' % more_links class Exercise(EduModule):