Commit 258f5622 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update views/lists/index.odt to fix a bug

parent 65de991c
......@@ -31,9 +31,9 @@
</style>
</head><body>%s</body>""" % response.body.getvalue()
fi = open(fhtml, 'w')
fi.write(shtml)
fi.close()
with open(fhtml, 'bw') as fi:
fi.write(shtml.encode())
pass
#
# convert the HTML in ODT file using LibreOffice
......@@ -70,4 +70,4 @@
s64 = base64.b64encode(sodt).decode("utf-8")
response.write(s64, escape=False)
}}
\ No newline at end of file
}}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment