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
d00ca800
Commit
d00ca800
authored
Mar 14, 2021
by
jvoisin
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep sharedStrings.xml when processing MSOffice sheets
parent
8b42b28b
Pipeline
#55700
failed with stages
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
libmat2/office.py
libmat2/office.py
+1
-0
No files found.
libmat2/office.py
View file @
d00ca800
...
...
@@ -87,6 +87,7 @@ class MSOfficeParser(ZipParser):
self
.
files_to_keep
=
set
(
map
(
re
.
compile
,
{
# type: ignore
r
'^\[Content_Types\]\.xml$'
,
r
'^_rels/\.rels$'
,
r
'^xl/sharedStrings\.xml$'
,
# https://docs.microsoft.com/en-us/office/open-xml/working-with-the-shared-string-table
r
'^(?:word|ppt|xl)/_rels/document\.xml\.rels$'
,
r
'^(?:word|ppt|xl)/_rels/footer[0-9]*\.xml\.rels$'
,
r
'^(?:word|ppt|xl)/_rels/header[0-9]*\.xml\.rels$'
,
...
...
jvoisin
@jvoisin
mentioned in issue
#149 (closed)
·
Mar 14, 2021
mentioned in issue
#149 (closed)
mentioned in issue #149
Toggle commit list
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