allow unicode in templates by default

workspace
Brendan Howell 4 years ago
parent d0639b142f
commit 90eadd57df

@ -378,7 +378,8 @@ class Bureau(object):
# run template with kwargs # run template with kwargs
templfile = os.path.join(self.mdir, template) templfile = os.path.join(self.mdir, template)
self.log.debug("printing with template: %s", templfile) self.log.debug("printing with template: %s", templfile)
templ = Template(filename=templfile, strict_undefined=True) templ = Template(filename=templfile, input_encoding="utf-8",
strict_undefined=True)
# TODO: make paper size a config variable # TODO: make paper size a config variable
pdfpath = tempfile.mkstemp(".pdf")[1] pdfpath = tempfile.mkstemp(".pdf")[1]

Loading…
Cancel
Save