1
0
Fork 0

Keep sharedStrings.xml when processing MSOffice sheets

This commit is contained in:
jvoisin 2021-03-14 14:41:40 +01:00
parent 8b42b28b70
commit d00ca800b2
1 changed files with 1 additions and 0 deletions

View File

@ -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$',