diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-02-26 20:29:01 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-02-26 20:31:32 -0800 |
commit | caed0df4a7ed5b2ec0cc2b15cc99e359987982e4 (patch) | |
tree | 5c764fb026cf78a88abd400bd9c98a34e0b75c51 /tests/s5.native | |
parent | 270c33e9ad201af6f4bb4b09dc415c271078e656 (diff) | |
download | pandoc-caed0df4a7ed5b2ec0cc2b15cc99e359987982e4.tar.gz |
Docx writer: Create content types and document rels from scratch.
This fixes problems that arise when you edit the reference.docx
with Word. Word tends to remove things from the `[Content_Types].xml`
and `word/_rels/document.xml.rels` files that are needed (e.g.
references to the `footnotes.xml` file and image default mime types).
So we regenerate these completely rather than taking them from
the `reference.docx`.
We also now encode mime types for each individual image rather
than using defaults. This should allow us to handle a wider
range of image types.
This mostly addresses #414. The only remaining issue I can see
is the issue of style IDs, which Word inexplicably changes in
some cases when the reference.docx is saved. E.g.
`FootnoteReference` becomes `FootnoteReference1`.
Diffstat (limited to 'tests/s5.native')
0 files changed, 0 insertions, 0 deletions