summaryrefslogtreecommitdiff
path: root/libmat2/office.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2/office.py')
-rw-r--r--libmat2/office.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat2/office.py b/libmat2/office.py
index d067128..1a793b4 100644
--- a/libmat2/office.py
+++ b/libmat2/office.py
@@ -525,7 +525,7 @@ class MSOfficeParser(ZipParser):
525 # see: https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/mc-ignorable-attribute 525 # see: https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/mc-ignorable-attribute
526 with open(full_path, 'rb') as f: 526 with open(full_path, 'rb') as f:
527 text = f.read() 527 text = f.read()
528 out = re.sub(b'mc:Ignorable="[^"]*"', b'', text, 1) 528 out = re.sub(b'mc:Ignorable="[^"]*"', b'', text, count=1)
529 with open(full_path, 'wb') as f: 529 with open(full_path, 'wb') as f:
530 f.write(out) 530 f.write(out)
531 531