fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03715cb
)
Report fix.
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 12 Aug 2019 13:50:30 +0000
(15:50 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 12 Aug 2019 13:50:30 +0000
(15:50 +0200)
src/reporting/utils.py
patch
|
blob
|
history
diff --git
a/src/reporting/utils.py
b/src/reporting/utils.py
index
ef4b1d0
..
797542a
100755
(executable)
--- a/
src/reporting/utils.py
+++ b/
src/reporting/utils.py
@@
-32,7
+32,7
@@
def render_to_pdf(output_path, template, context=None, add_files=None):
texml = BytesIO(rendered.encode('utf-8'))
tempdir = mkdtemp(prefix="render_to_pdf-")
tex_path = os.path.join(tempdir, "doc.tex")
- with open(tex_path, 'w') as tex_file:
+ with open(tex_path, 'w
b
') as tex_file:
Texml.processor.process(texml, tex_file, encoding="utf-8")
if add_files: