Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jvoisin
mat2
Commits
d00ca800
Commit
d00ca800
authored
Mar 14, 2021
by
jvoisin
Browse files
Keep sharedStrings.xml when processing MSOffice sheets
parent
8b42b28b
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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