aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Writers/Docx.hs
AgeCommit message (Collapse)AuthorFilesLines
2017-01-25Added ReaderOptions parameter to readNative.John MacFarlane1-2/+2
This makes it similar to the other readers -- even though ReaderOptions is essentially ignored, the uniformity is nice.
2017-01-25Simplified reference-docx/reference-odt to reference-doc.John MacFarlane1-1/+1
* Text.Pandoc.Options.WriterOptions: removed writerReferenceDocx and writerReferenceODT, replaced them with writerReferenceDoc. This can hold either an ODT or a Docx. In this way, writerReferenceDoc is like writerTemplate, which can hold templates of different formats. [API change] * Removed `--reference-docx` and `--reference-odt` options. * Added `--reference-doc` option.
2017-01-25Update all tests to use new readers and error structure.Jesse Rosenthal1-4/+3
2017-01-25Changed readNative to use PandocMonad.John MacFarlane1-3/+5
2017-01-25Tests: have docx writer test use runIOorExplode.Jesse Rosenthal1-1/+2
Note that part of the reason for making a pure writer is to have better tests, so this is a temporary fix.
2016-08-15Docx writer test: comment out function to make compiler happy.Jesse Rosenthal1-2/+2
2016-08-15Docx writer: test for custom styles.Jesse Rosenthal1-0/+8
This just tests whether a custom style with a recognizable style (italic etc, defined in a reference.docx) will roundtrip back to that format (i.e., whether `<span custom-style="Emphasized">` will roundtrip to `Emph`). The custom styles are defined in the `custom-style-reference.docx` included in the docx dir.
2016-08-15Docx writer tests: allow for altered round tripJesse Rosenthal1-40/+49
Sometimes we will want to get back something different than we started with in a round-trip test. This allows for that, and makes the perfect roundtrip a special case.
2015-11-09Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane1-1/+0
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
2015-11-08Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane1-0/+1
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
2015-09-09Tests: docx writer tests now use "../data" for data directory.John MacFarlane1-1/+4
This allows tests to be run without installing first.
2015-03-28Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane1-3/+4
mpickering-errortype Conflicts: benchmark/benchmark-pandoc.hs src/Text/Pandoc/Readers/Markdown.hs src/Text/Pandoc/Readers/Org.hs src/Text/Pandoc/Readers/RST.hs tests/Tests/Readers/LaTeX.hs
2015-03-08Docx Writer: Tables testNikolay Yakimov1-6/+6
2015-03-08Lists testNikolay Yakimov1-4/+4
2015-03-03Initial tests for writerNikolay Yakimov1-0/+128