aboutsummaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-02-11 09:12:58 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-02-11 09:12:58 -0800
commit5cfec4b9224462524040aae8312e3b3e61cbf422 (patch)
treed6cd57a01842f94a2e3944b2d5a9191879af9404 /windows
parentfdb11cdae90317a9892b0b5f9b66ab985f82b019 (diff)
downloadpandoc-5cfec4b9224462524040aae8312e3b3e61cbf422.tar.gz
Fix _rels/.rels if it has been screwed up by Word.
Closes #414. Previously, if you edited the reference.docx with Word, then created a new docx using the edited reference.docx, Word would complain about the file being corrupt. The problem seems to be that Word changes _rels/.rels, changing the Type of the Relationship to docProps/core.xml from "http://schemas.openxmlformats.org/officedocument/2006/relationships/metadata/core-properties" to "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties". As far as I can see, this is a bug in Word, since the latter is not valid. (See http://idippedut.dk/post/2010/04/22/Correct-according-to-spec-or-implementation.aspx.) This change simply does a global replace on _rels/.rels that reverts the change Word makes. And now producing docx files with Word-modified reference.docx seems to work.
Diffstat (limited to 'windows')
0 files changed, 0 insertions, 0 deletions