aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-06-29 11:15:40 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-06-29 11:15:40 -0700
commit0948af9cc549f0ea3b85fa760aa521b8deaad2c0 (patch)
tree0d011611ea1f8ba576f8e83ef7d9297bc6864d56 /test
parenta01ba4463f1f0d14a8032f147cddb76dadb4b853 (diff)
downloadpandoc-0948af9cc549f0ea3b85fa760aa521b8deaad2c0.tar.gz
Docx writer: Add table numbering for captioned tables.
The numbers are added using fields, so that Word can create a list of tables that will update automatically.
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Writers/OOXML.hs4
-rw-r--r--test/docx/golden/image.docxbin26774 -> 26776 bytes
2 files changed, 3 insertions, 1 deletions
diff --git a/test/Tests/Writers/OOXML.hs b/test/Tests/Writers/OOXML.hs
index c1e47622d..83f05cfec 100644
--- a/test/Tests/Writers/OOXML.hs
+++ b/test/Tests/Writers/OOXML.hs
@@ -55,7 +55,9 @@ testArchive :: (WriterOptions -> Pandoc -> PandocIO BL.ByteString)
-> IO Archive
testArchive writerFn opts fp = do
txt <- T.readFile fp
- bs <- runIOorExplode $ readNative def txt >>= writerFn opts
+ bs <- runIOorExplode $ do
+ setTranslations "en-US"
+ readNative def txt >>= writerFn opts
return $ toArchive bs
compareFileList :: FilePath -> Archive -> Archive -> Maybe String
diff --git a/test/docx/golden/image.docx b/test/docx/golden/image.docx
index 9fe65326f..7c2d8a9ac 100644
--- a/test/docx/golden/image.docx
+++ b/test/docx/golden/image.docx
Binary files differ