aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Writers/Docx.hs7
-rw-r--r--test/docx/golden/block_quotes.docxbin10035 -> 10036 bytes
-rw-r--r--test/docx/golden/codeblock.docxbin9881 -> 9882 bytes
-rw-r--r--test/docx/golden/comments.docxbin10216 -> 10216 bytes
-rw-r--r--test/docx/golden/custom_style_no_reference.docxbin9980 -> 9980 bytes
-rw-r--r--test/docx/golden/custom_style_preserve.docxbin10606 -> 10606 bytes
-rw-r--r--test/docx/golden/definition_list.docxbin9872 -> 9873 bytes
-rw-r--r--test/docx/golden/document-properties-short-desc.docxbin9884 -> 9884 bytes
-rw-r--r--test/docx/golden/document-properties.docxbin10361 -> 10361 bytes
-rw-r--r--test/docx/golden/headers.docxbin10022 -> 10022 bytes
-rw-r--r--test/docx/golden/image.docxbin26698 -> 26698 bytes
-rw-r--r--test/docx/golden/inline_code.docxbin9817 -> 9817 bytes
-rw-r--r--test/docx/golden/inline_formatting.docxbin9989 -> 9989 bytes
-rw-r--r--test/docx/golden/inline_images.docxbin26753 -> 26753 bytes
-rw-r--r--test/docx/golden/link_in_notes.docxbin10038 -> 10039 bytes
-rw-r--r--test/docx/golden/links.docxbin10217 -> 10217 bytes
-rw-r--r--test/docx/golden/lists.docxbin10295 -> 10307 bytes
-rw-r--r--test/docx/golden/lists_continuing.docxbin10090 -> 10091 bytes
-rw-r--r--test/docx/golden/lists_restarting.docxbin10090 -> 10091 bytes
-rw-r--r--test/docx/golden/nested_anchors_in_header.docxbin10179 -> 10179 bytes
-rw-r--r--test/docx/golden/notes.docxbin9988 -> 9989 bytes
-rw-r--r--test/docx/golden/table_one_row.docxbin9838 -> 9863 bytes
-rw-r--r--test/docx/golden/table_with_list_cell.docxbin10207 -> 10238 bytes
-rw-r--r--test/docx/golden/tables.docxbin10220 -> 10252 bytes
-rw-r--r--test/docx/golden/track_changes_deletion.docxbin9861 -> 9861 bytes
-rw-r--r--test/docx/golden/track_changes_insertion.docxbin9844 -> 9844 bytes
-rw-r--r--test/docx/golden/track_changes_move.docxbin9878 -> 9878 bytes
-rw-r--r--test/docx/golden/unicode.docxbin9802 -> 9802 bytes
-rw-r--r--test/docx/golden/verbatim_subsuper.docxbin9850 -> 9850 bytes
29 files changed, 6 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs
index c43f6f70f..89f100720 100644
--- a/src/Text/Pandoc/Writers/Docx.hs
+++ b/src/Text/Pandoc/Writers/Docx.hs
@@ -1017,7 +1017,12 @@ blockToOpenXML' opts (Table _ blkCapt specs thead tbody tfoot) = do
( mknode "w:tblPr" []
( mknode "w:tblStyle" [("w:val","Table")] () :
mknode "w:tblW" [("w:type", "pct"), ("w:w", show rowwidth)] () :
- mknode "w:tblLook" [("w:firstRow",if hasHeader then "1" else "0") ] () :
+ mknode "w:tblLook" [("w:firstRow",if hasHeader then "1" else "0")
+ ,("w:lastRow","0")
+ ,("w:firstColumn","0")
+ ,("w:lastColumn","0")
+ ,("w:noHBand","0")
+ ,("w:noVBand","0")] () :
[ mknode "w:tblCaption" [("w:val", T.unpack captionStr)] ()
| not (null caption) ] )
: mknode "w:tblGrid" []
diff --git a/test/docx/golden/block_quotes.docx b/test/docx/golden/block_quotes.docx
index 0f93655f3..d478369f7 100644
--- a/test/docx/golden/block_quotes.docx
+++ b/test/docx/golden/block_quotes.docx
Binary files differ
diff --git a/test/docx/golden/codeblock.docx b/test/docx/golden/codeblock.docx
index 5144da4d5..f986b0055 100644
--- a/test/docx/golden/codeblock.docx
+++ b/test/docx/golden/codeblock.docx
Binary files differ
diff --git a/test/docx/golden/comments.docx b/test/docx/golden/comments.docx
index f321425b3..fbb919260 100644
--- a/test/docx/golden/comments.docx
+++ b/test/docx/golden/comments.docx
Binary files differ
diff --git a/test/docx/golden/custom_style_no_reference.docx b/test/docx/golden/custom_style_no_reference.docx
index 313182f3a..f14537def 100644
--- a/test/docx/golden/custom_style_no_reference.docx
+++ b/test/docx/golden/custom_style_no_reference.docx
Binary files differ
diff --git a/test/docx/golden/custom_style_preserve.docx b/test/docx/golden/custom_style_preserve.docx
index 2b817656d..64e42e9d3 100644
--- a/test/docx/golden/custom_style_preserve.docx
+++ b/test/docx/golden/custom_style_preserve.docx
Binary files differ
diff --git a/test/docx/golden/definition_list.docx b/test/docx/golden/definition_list.docx
index 179391541..1afb20e6c 100644
--- a/test/docx/golden/definition_list.docx
+++ b/test/docx/golden/definition_list.docx
Binary files differ
diff --git a/test/docx/golden/document-properties-short-desc.docx b/test/docx/golden/document-properties-short-desc.docx
index 27dee377a..ba7cc8df0 100644
--- a/test/docx/golden/document-properties-short-desc.docx
+++ b/test/docx/golden/document-properties-short-desc.docx
Binary files differ
diff --git a/test/docx/golden/document-properties.docx b/test/docx/golden/document-properties.docx
index 048be92cf..426a908bb 100644
--- a/test/docx/golden/document-properties.docx
+++ b/test/docx/golden/document-properties.docx
Binary files differ
diff --git a/test/docx/golden/headers.docx b/test/docx/golden/headers.docx
index c15bf9049..63e754b5c 100644
--- a/test/docx/golden/headers.docx
+++ b/test/docx/golden/headers.docx
Binary files differ
diff --git a/test/docx/golden/image.docx b/test/docx/golden/image.docx
index ce6f16bc6..04a6f2041 100644
--- a/test/docx/golden/image.docx
+++ b/test/docx/golden/image.docx
Binary files differ
diff --git a/test/docx/golden/inline_code.docx b/test/docx/golden/inline_code.docx
index ed3927e98..ae415a3a1 100644
--- a/test/docx/golden/inline_code.docx
+++ b/test/docx/golden/inline_code.docx
Binary files differ
diff --git a/test/docx/golden/inline_formatting.docx b/test/docx/golden/inline_formatting.docx
index 416a91ec0..5efe66edd 100644
--- a/test/docx/golden/inline_formatting.docx
+++ b/test/docx/golden/inline_formatting.docx
Binary files differ
diff --git a/test/docx/golden/inline_images.docx b/test/docx/golden/inline_images.docx
index 1381b0a5a..00a4e77c7 100644
--- a/test/docx/golden/inline_images.docx
+++ b/test/docx/golden/inline_images.docx
Binary files differ
diff --git a/test/docx/golden/link_in_notes.docx b/test/docx/golden/link_in_notes.docx
index 338d09bd9..18c7ec8c4 100644
--- a/test/docx/golden/link_in_notes.docx
+++ b/test/docx/golden/link_in_notes.docx
Binary files differ
diff --git a/test/docx/golden/links.docx b/test/docx/golden/links.docx
index 0785c416b..3e99c48f3 100644
--- a/test/docx/golden/links.docx
+++ b/test/docx/golden/links.docx
Binary files differ
diff --git a/test/docx/golden/lists.docx b/test/docx/golden/lists.docx
index 7bf497dc4..84cb1b277 100644
--- a/test/docx/golden/lists.docx
+++ b/test/docx/golden/lists.docx
Binary files differ
diff --git a/test/docx/golden/lists_continuing.docx b/test/docx/golden/lists_continuing.docx
index c8b1e8efd..ee1cb3d49 100644
--- a/test/docx/golden/lists_continuing.docx
+++ b/test/docx/golden/lists_continuing.docx
Binary files differ
diff --git a/test/docx/golden/lists_restarting.docx b/test/docx/golden/lists_restarting.docx
index 99f95f652..8725ffe82 100644
--- a/test/docx/golden/lists_restarting.docx
+++ b/test/docx/golden/lists_restarting.docx
Binary files differ
diff --git a/test/docx/golden/nested_anchors_in_header.docx b/test/docx/golden/nested_anchors_in_header.docx
index c9ab47ffb..96b999707 100644
--- a/test/docx/golden/nested_anchors_in_header.docx
+++ b/test/docx/golden/nested_anchors_in_header.docx
Binary files differ
diff --git a/test/docx/golden/notes.docx b/test/docx/golden/notes.docx
index 8d68ae496..17dfa8c54 100644
--- a/test/docx/golden/notes.docx
+++ b/test/docx/golden/notes.docx
Binary files differ
diff --git a/test/docx/golden/table_one_row.docx b/test/docx/golden/table_one_row.docx
index adf567439..1a7ddf476 100644
--- a/test/docx/golden/table_one_row.docx
+++ b/test/docx/golden/table_one_row.docx
Binary files differ
diff --git a/test/docx/golden/table_with_list_cell.docx b/test/docx/golden/table_with_list_cell.docx
index e182decc0..e200c8cf5 100644
--- a/test/docx/golden/table_with_list_cell.docx
+++ b/test/docx/golden/table_with_list_cell.docx
Binary files differ
diff --git a/test/docx/golden/tables.docx b/test/docx/golden/tables.docx
index b41a2b91c..5b0a728e3 100644
--- a/test/docx/golden/tables.docx
+++ b/test/docx/golden/tables.docx
Binary files differ
diff --git a/test/docx/golden/track_changes_deletion.docx b/test/docx/golden/track_changes_deletion.docx
index 9e144a885..1ab4f1d0e 100644
--- a/test/docx/golden/track_changes_deletion.docx
+++ b/test/docx/golden/track_changes_deletion.docx
Binary files differ
diff --git a/test/docx/golden/track_changes_insertion.docx b/test/docx/golden/track_changes_insertion.docx
index 3d4323f05..c9f3c8a88 100644
--- a/test/docx/golden/track_changes_insertion.docx
+++ b/test/docx/golden/track_changes_insertion.docx
Binary files differ
diff --git a/test/docx/golden/track_changes_move.docx b/test/docx/golden/track_changes_move.docx
index 65d25b8b5..acf11e7f7 100644
--- a/test/docx/golden/track_changes_move.docx
+++ b/test/docx/golden/track_changes_move.docx
Binary files differ
diff --git a/test/docx/golden/unicode.docx b/test/docx/golden/unicode.docx
index b6989076d..97ca3e7e5 100644
--- a/test/docx/golden/unicode.docx
+++ b/test/docx/golden/unicode.docx
Binary files differ
diff --git a/test/docx/golden/verbatim_subsuper.docx b/test/docx/golden/verbatim_subsuper.docx
index aa04cedf2..279b11279 100644
--- a/test/docx/golden/verbatim_subsuper.docx
+++ b/test/docx/golden/verbatim_subsuper.docx
Binary files differ