summaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/Docx.hs
Commit message (Collapse)AuthorAge
* Docx reader: Ensure one-row tables don't have header.Jesse Rosenthal2016-12-08
| | | | | | | | | | | | | | Tables in MS Word are set by default to have special first-row formatting, which pandoc uses to determine whether or not they have a header. This means that one-row tables will, by default, have only a header -- which we imagine is not what people want. This change ensures that a one-row table is not understood to be a header only. Note that this means that it is impossible to produce a header-only table from docx, even though it is legal pandoc. But we believe that in nearly all cases, it will be an accidental (and unwelcome) result Closes #3285.
* Options: Removed writerStandalone, made writerTemplate a Maybe.John MacFarlane2016-11-30
| | | | | | | | Previously setting writerStandalone = True did nothing unless a template was provided in writerTemplate. Now a fragment will be generated if writerTemplate is Nothing; otherwise, the specified template will be used and standalone output generated. [API change]
* Docx reader: test for nested anchor spans in headerJesse Rosenthal2016-08-29
| | | | | This ensures that anchor spans in header with content (or with other anchor spans inside) will resolve to links to a header id properly.
* Docx reader: add tests for commentsJesse Rosenthal2016-06-23
| | | | | | We test for comments, using all track-changes options. Note that we should only output comments if `--track-changes=all`. We also test for emitting warnings if there is complicated formatting.
* Docx reader tests: Add tests for warnings.Jesse Rosenthal2016-06-23
| | | | We test to see if we emit any warnings.
* Docx Reader: Tests for track-changes movingJesse Rosenthal2016-04-16
|
* Docx reader: Add test for enumerated headers.Jesse Rosenthal2016-03-16
| | | | We don't want them to turn into a list.
* Docx reader: Add tests for adjacent hyperlinks.Jesse Rosenthal2016-02-02
|
* Docx reader: Add test cases for dummy list items.Jesse Rosenthal2015-11-18
|
* Added test case for links in notes.Jesse Rosenthal2015-11-14
|
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* Docx Reader: Create special punctuation testOphir Lifshitz2015-10-04
|
* Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane2015-03-28
|\ | | | | | | | | | | | | | | | | | | | | 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
| * Update testsMatthew Pickering2015-02-18
| |
* | Docx reader: add test for verbatim in sub/superscript.Jesse Rosenthal2015-02-21
| |
* | Docx reader: Add tests for new list style parsing.Jesse Rosenthal2015-02-19
|/
* Docx reader: test lists in table cells.Jesse Rosenthal2015-02-13
|
* Docx Reader: Add test for VML images.Jesse Rosenthal2015-01-21
| | | | | Since images are often visually (not structurally) placed on the page, people might not always get the results they're looking for here.
* Docx test: Remove Danish header test.Jesse Rosenthal2014-10-25
| | | | | Redundant, now that we're testing for a more generalized sort of internationalized blocks.
* Docx reader: add tests for i18n headers.Jesse Rosenthal2014-10-25
| | | | | This tests blockquotes and headers in Russian. Previous tests make sure that this doesn't produce a regression in en-us Header and Blockquotes.
* Merge pull request #1601 from jkr/windowsfixJohn MacFarlane2014-09-27
|\ | | | | Fix path-slashes inside archive for windows
| * Docx reader: Modify mediabag test accordingly.Jesse Rosenthal2014-09-02
| |
* | Docx reader: Add test for polyglot headers.Jesse Rosenthal2014-09-05
| | | | | | | | Only Danish at the moment.
* | Docx Reader: Add tests for numbered headers.Jesse Rosenthal2014-09-04
|/
* Docx reader: Test for character styles.Jesse Rosenthal2014-08-16
|
* Revised tests directory.John MacFarlane2014-08-13
| | | | | | | | | Renamed some tests, introducing subsidiary directories for fb2, docx, epub. Cleaned up tests in cabal file. Combined dokuwiki-writer and dokuwiki_inline_formatting tests.
* Docx: Add dropcap tests.Jesse Rosenthal2014-08-11
|
* Docx reader: Test inline image code.Jesse Rosenthal2014-08-07
|
* Docx tests: rewrite mediabag tests.Jesse Rosenthal2014-07-31
| | | | | | | | | | This will allow us to test the whole mediabag (making sure, for example, that images are added with the correct keys) instead of just individual extracted images. We compare each entry in the media bag to an image extracted on the fly from the docx. As a result, we only need one file to test with. The image in the current tests was also replaced with a smaller one.
* New module, Text.Pandoc.MediaBag.John MacFarlane2014-07-31
| | | | | | | Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.
* Made MediaBag a newtype, and added mime type information to media.John MacFarlane2014-07-31
| | | | | | | | | | Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag`
* Docx test: Test image from media bag.Jesse Rosenthal2014-07-30
|
* Docx tests: Added media test comparison function.Jesse Rosenthal2014-07-30
| | | | | Also tell pandoc.cabal that we'll be needing base64, since we want to compare strings here.
* Docx reader: change tests to make use of media bag.Jesse Rosenthal2014-07-30
|
* Add and update docx tests in pandoc.cabal.Jesse Rosenthal2014-07-29
|
* Docx reader: Make metavalues out of styled paragraphs.Jesse Rosenthal2014-07-29
| | | | | | | | | | | This will make paragraphs styled with `Author`, `Title`, `Subtitle`, `Date`, and `Abstract` into pandoc metavalues, rather than text. The implementation only takes those elements from the beginning of the document (ignoring empty paragraphs). Multiple paragraphs in the `Author` style will be made into a metaList, one paragraph per item. Hard linebreaks (shift-return) in the paragraph will be maintained, and can be used for institution, email, etc.
* Docx reader: Add testJesse Rosenthal2014-07-15
| | | | Test auto ident header anchors with pandoc-generated pandoc.
* Docx reader: Add tests for hanging indent handline.Jesse Rosenthal2014-06-29
| | | | | | | | We want to treat it as a plain paragraph if the hanging amount is greater to or equal to the left indent---i.e., if the first line has zero indentation. But we still want it to be a block quote if it starts to the right of the margin. Someone might format verse with wrapping lines with a hanging indent, for example.
* Track changes tests.Jesse Rosenthal2014-06-25
|
* Docx reader: Add tests for basic track changesJesse Rosenthal2014-06-25
| | | | | | | This is what seems like the sensible default: read in insertions, and ignore deletions. In the future, it would be good if options were available for either taking in deletions or keeping both in some scriptable format.
* Docx Reader: add failing defintion list tests.Jesse Rosenthal2014-06-24
|
* Docx reader: add failing tests for inline code and code blocks.Jesse Rosenthal2014-06-24
|
* Add test for correctly trimming spaces in formatting.Jesse Rosenthal2014-06-23
| | | | | This used to be fixed in the tree-walking. We need to make sure we're doing it right now.
* Docx reader tests: add tests for normalization deep in blocks.Jesse Rosenthal2014-06-22
|
* Add normalization test.Jesse Rosenthal2014-06-22
| | | | | | | | Add torture-test for new normalization functions. One problem that this test demonstrates is that word has a tendency to turn off formatting at a space, and then turn it back on after. I'm not sure yet whether this is something we should fix.
* Docx reader tests: Introduce NoNormPandoc type.Jesse Rosenthal2014-06-20
| | | | | | | This is just a wrapper around Pandoc that doesn't normalize with `toString`. We want to make sure that our own normalization process works. If, in the future, we are able to hook into the builder's normalization, this will be removed.
* Add tabs tests.Jesse Rosenthal2014-06-19
|
* Add ReaderOptions to the docx testsJesse Rosenthal2014-06-19
| | | | | This will allow for testing different media embedding (in addition to any other applicable options.)
* Naming: Use Docx instead of DocX.John MacFarlane2014-06-16
For consistency with the existing writer.