Forcing binary encoding in. Resolves issue on non *nix O.S. See #7.
This commit is contained in:
parent
d285826e25
commit
fb1fb09451
1 changed files with 1 additions and 1 deletions
|
|
@ -497,7 +497,7 @@ if __name__ == "__main__":
|
||||||
render = Render('a.odt')
|
render = Render('a.odt')
|
||||||
result = render.render(countries=countries, document=document)
|
result = render.render(countries=countries, document=document)
|
||||||
|
|
||||||
output = open('rendered.odt', 'w')
|
output = open('rendered.odt', 'wb')
|
||||||
output.write(result)
|
output.write(result)
|
||||||
|
|
||||||
print("Template rendering finished! Check rendered.odt file.")
|
print("Template rendering finished! Check rendered.odt file.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue