From c382dba94cbc200142304e3853adab367745b7eb Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 25 Dec 2018 14:04:12 +0100 Subject: [PATCH] fix svg barcode inlines on article views --- screenless/bureau/publications/publications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/publications/publications.py b/screenless/bureau/publications/publications.py index a68e3d6..6b7c6de 100644 --- a/screenless/bureau/publications/publications.py +++ b/screenless/bureau/publications/publications.py @@ -176,7 +176,7 @@ class Publications(Bureau): encoded_svg = b64encode(bytes(svg, 'utf-8')).decode() encoded_data = "data:image/svg+xml;charset=utf-8;base64," + encoded_svg svg = '' % encoded_data - footnote.append(svg) + footnote.append(lxml.html.fromstring(svg)) html.append(footnote) self.print_full("article.html", title=doc.title(),