git.iko.soy/typeable/pandoc
on master help sign in
Docx writer: copy over more settings from referenc.odcx.
0a4c692John MacFarlane
src/Text/Pandoc/Writers/Docx.hs+16−1
@@ -469,12 +469,27 @@ writeDocx opts doc = do
469 -- adds references to footnotes or endnotes we don't have...
469 -- adds references to footnotes or endnotes we don't have...
470 -- we do, however, copy some settings over from reference
470 -- we do, however, copy some settings over from reference
471 let settingsPath = "word/settings.xml"
471 let settingsPath = "word/settings.xml"
472+ settingsList = [ "zoom"
473+ , "embedSystemFonts"
474+ , "doNotTrackMoves"
475+ , "defaultTabStop"
476+ , "drawingGridHorizontalSpacing"
477+ , "drawingGridVerticalSpacing"
478+ , "displayHorizontalDrawingGridEvery"
479+ , "displayVerticalDrawingGridEvery"
480+ , "characterSpacingControl"
481+ , "savePreviewPicture"
482+ , "mathPr"
483+ , "themeFontLang"
484+ , "decimalSymbol"
485+ , "listSeparator"
472− settingsList = [ "autoHyphenation"
486+ , "autoHyphenation"
473 , "consecutiveHyphenLimit"
487 , "consecutiveHyphenLimit"
474 , "hyphenationZone"
488 , "hyphenationZone"
475 , "doNotHyphenateCap"
489 , "doNotHyphenateCap"
476 , "evenAndOddHeaders"
490 , "evenAndOddHeaders"
477 , "proofState"
491 , "proofState"
492+ , "compat"
478 ]
493 ]
479 settingsEntry <- copyChildren refArchive distArchive settingsPath epochtime settingsList
494 settingsEntry <- copyChildren refArchive distArchive settingsPath epochtime settingsList
480
495
test/docx/golden/block_quotes.docx

Binary file not shown.

test/docx/golden/codeblock.docx

Binary file not shown.

test/docx/golden/comments.docx

Binary file not shown.

test/docx/golden/custom_style_no_reference.docx

Binary file not shown.

test/docx/golden/custom_style_preserve.docx

Binary file not shown.

test/docx/golden/custom_style_reference.docx

Binary file not shown.

test/docx/golden/definition_list.docx

Binary file not shown.

test/docx/golden/document-properties-short-desc.docx

Binary file not shown.

test/docx/golden/document-properties.docx

Binary file not shown.

test/docx/golden/headers.docx

Binary file not shown.

test/docx/golden/image.docx

Binary file not shown.

test/docx/golden/inline_code.docx

Binary file not shown.

test/docx/golden/inline_formatting.docx

Binary file not shown.

test/docx/golden/inline_images.docx

Binary file not shown.

test/docx/golden/link_in_notes.docx

Binary file not shown.

test/docx/golden/links.docx

Binary file not shown.

test/docx/golden/lists.docx

Binary file not shown.

test/docx/golden/lists_continuing.docx

Binary file not shown.

test/docx/golden/lists_multiple_initial.docx

Binary file not shown.

test/docx/golden/lists_restarting.docx

Binary file not shown.

test/docx/golden/nested_anchors_in_header.docx

Binary file not shown.

test/docx/golden/notes.docx

Binary file not shown.

test/docx/golden/raw-blocks.docx

Binary file not shown.

test/docx/golden/raw-bookmarks.docx

Binary file not shown.

test/docx/golden/table_one_row.docx

Binary file not shown.

test/docx/golden/table_with_list_cell.docx

Binary file not shown.

test/docx/golden/tables.docx

Binary file not shown.

test/docx/golden/track_changes_deletion.docx

Binary file not shown.

test/docx/golden/track_changes_insertion.docx

Binary file not shown.

test/docx/golden/track_changes_move.docx

Binary file not shown.

test/docx/golden/track_changes_scrubbed_metadata.docx

Binary file not shown.

test/docx/golden/unicode.docx

Binary file not shown.

test/docx/golden/verbatim_subsuper.docx

Binary file not shown.