summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2020-03-07 14:34:07 +0100
committerjvoisin2020-03-07 14:34:07 +0100
commita23dc001cd74866204c868ef1dbf7ef7ca99b5aa (patch)
tree301fd65fd8c5c945461cda37ce613ca8818efa63
parentf93df85d0386ffcca524df14619f8f4e9b570e9b (diff)
Improve compatibility with MS Office of cleaned ppt
-rw-r--r--libmat2/office.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/office.py b/libmat2/office.py
index d945f6a..7f70b72 100644
--- a/libmat2/office.py
+++ b/libmat2/office.py
@@ -307,7 +307,7 @@ class MSOfficeParser(ZipParser):
307 # This file must be present and valid, 307 # This file must be present and valid,
308 # so we're removing as much as we can. 308 # so we're removing as much as we can.
309 with open(full_path, 'wb') as f: 309 with open(full_path, 'wb') as f:
310 f.write(b'<?xml version="1.0">') 310 f.write(b'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')
311 uid = str(uuid.uuid4()).encode('utf-8') 311 uid = str(uuid.uuid4()).encode('utf-8')
312 f.write(b'<a:tblStyleLst def="{%s}" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>' % uid) 312 f.write(b'<a:tblStyleLst def="{%s}" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>' % uid)
313 313