diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-06-29 11:15:40 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-06-29 11:15:40 -0700 |
commit | 0948af9cc549f0ea3b85fa760aa521b8deaad2c0 (patch) | |
tree | 0d011611ea1f8ba576f8e83ef7d9297bc6864d56 /test/Tests | |
parent | a01ba4463f1f0d14a8032f147cddb76dadb4b853 (diff) | |
download | pandoc-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/Tests')
-rw-r--r-- | test/Tests/Writers/OOXML.hs | 4 |
1 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 |