fix svg barcode inlines on article views

workspace
Brendan Howell 6 years ago
parent 084a9f0c3f
commit c382dba94c

@ -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 = '<img src="%s"/>' % encoded_data
footnote.append(svg)
footnote.append(lxml.html.fromstring(svg))
html.append(footnote)
self.print_full("article.html", title=doc.title(),

Loading…
Cancel
Save