From ace92112e99e3f48466e4d230087c3ab40187450 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 17 Jun 2019 14:24:16 +0200 Subject: [PATCH] Minor fix: mark_safe in template tag for headers. --- src/catalogue/templatetags/catalogue_tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/catalogue/templatetags/catalogue_tags.py b/src/catalogue/templatetags/catalogue_tags.py index ef0ea5dcc..2670e58db 100644 --- a/src/catalogue/templatetags/catalogue_tags.py +++ b/src/catalogue/templatetags/catalogue_tags.py @@ -44,8 +44,8 @@ def html_title_from_tags(tags): if len(tags) < 2: return title_from_tags(tags) template = Template("{{ category }}: {{ tag.name }}") - return capfirst(",
".join( - template.render(Context({'tag': tag, 'category': _(tag.category)})) for tag in tags)) + return mark_safe(capfirst(",
".join( + template.render(Context({'tag': tag, 'category': _(tag.category)})) for tag in tags))) def simple_title(tags): -- 2.20.1