Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
jvoisin
mat2
Commits
a23dc001
Commit
a23dc001
authored
Mar 07, 2020
by
jvoisin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve compatibility with MS Office of cleaned ppt
parent
f93df85d
Pipeline
#35635
passed with stages
in 7 minutes and 24 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libmat2/office.py
libmat2/office.py
+1
-1
No files found.
libmat2/office.py
View file @
a23dc001
...
...
@@ -307,7 +307,7 @@ class MSOfficeParser(ZipParser):
# This file must be present and valid,
# so we're removing as much as we can.
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'
)
f
.
write
(
b
'<a:tblStyleLst def="{%s}" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/>'
%
uid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment