From 8be494f3ddda9f45ae3e454ec549e06f0eba9380 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 11 Feb 2013 11:32:24 +0100 Subject: [PATCH] no additional formats links if not needed --- librarian/pyhtml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.20.1