1
0
mirror of synced 2024-11-25 10:44:23 +01:00

Improve compatibility with MS Office of cleaned ppt

This commit is contained in:
jvoisin 2020-03-07 14:34:07 +01:00
parent f93df85d03
commit a23dc001cd

View File

@ -307,7 +307,7 @@ class MSOfficeParser(ZipParser):
# This file must be present and valid, # This file must be present and valid,
# so we're removing as much as we can. # so we're removing as much as we can.
with open(full_path, 'wb') as f: with open(full_path, 'wb') as f:
f.write(b'<?xml version="1.0">') f.write(b'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')
uid = str(uuid.uuid4()).encode('utf-8') uid = str(uuid.uuid4()).encode('utf-8')
f.write(b'<a:tblStyleLst def="{%s}" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>' % uid) f.write(b'<a:tblStyleLst def="{%s}" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>' % uid)