summaryrefslogtreecommitdiff
path: root/test/docx
Commit message (Collapse)AuthorAge
* Docx reader: Handle nested sdt tags.Jesse Rosenthal2018-02-28
| | | | | | | Previously we had only unwrapped one level of sdt tags. Now we recurse if we find them. Closes: #4415
* Docx reader: Don't look up dependant run styles if +styles is enabled.Jesse Rosenthal2018-02-23
| | | | | | It makes more sense not to interpret -- otherwise using the original document as the reference-doc would produce two of everything: the interpreted version and the uninterpreted style version.
* Docx test: adjust test for fix of buglaptop1\Andrew2018-02-23
| | | | | | | | This commit adjusts the test cases for the Docx writer after the fix of #3930. - Adjusted test cases with inline images. The inline images now have the correct sizing, title and description. - Modified the test case to include an image multiple times with different sizing each time. - Tested on Windows 8.1 with Word 2007 (12.0.6705.5000) The files are not corrupted and display exactly what is expected.
* Docx reader: Move pandoc inline styling inside custom-style spanJesse Rosenthal2018-02-22
| | | | | | | | Previously Emph, Strong, etc were outside the custom-style span. This moves them inside in order to make it easier to write filters that act on the formatting in these contents. Tests and MANUAL example are changed to match.
* Docx reader: Avoid repeated spans in custom styles.Jesse Rosenthal2018-02-22
| | | | | | The previous commit had a bug where custom-style spans would be read with every recurrsion. This fixes that, and changes the example given in the manual.
* Docx reader tests: test custom style extension.Jesse Rosenthal2018-02-22
|
* Docx reader: Pick table width from the longest row or headerdanse2018-02-15
| | | | | | | This change is intended to preserve as much of the table content as possible Closes #4360
* Docx writer tests: Add tests for custom stylesJesse Rosenthal2018-01-27
|
* Docx writer tests: Use new golden frameworkJesse Rosenthal2018-01-27
| | | | | | | | | | | | | | These are based off the reader tests, with some removed (where the reader output was identical, based on different docx inputs). There are still more to be added. In particular, tests for custom-styles need to be added. All golden docx files have been checked in MS Word 2013 (windows). There is no corruption. There is questionable output in the `tables` test: the three tables seemed to be joined. This will be addressed in a future commit, and the golden docx file will be changed.
* Docx reader: Add test for hyperlinks in instrText tagJesse Rosenthal2018-01-16
| | | | | | | This is difficult to recreate with a modern version of Word, so I'm using the file submitted with the bug report. It would be preferable to find a smaller example with Latin characters, though, so as not to confuse the issue being tested.
* Docx reader: Add tests for paragraph insertion/deletion.Jesse Rosenthal2018-01-02
|
* Docx reader: tests for overlapping targets (anchor spans).Jesse Rosenthal2017-12-31
|
* Docx Reader: Combine adjacent anchors.Jesse Rosenthal2017-12-31
| | | | | | | | | | | | | | There isn't any reason to have numberous anchors in the same place, since we can't maintain docx's non-nesting overlapping. So we reduce to a single anchor, and have all links pointing to one of the overlapping anchors point to that one. This changes the behavior from commit e90c714c7 slightly (use the first anchor instead of the last) so we change the expected test result. Note that because this produces a state that has to be set after every invocation of `parPartToInlines`, we make the main function into a primed subfunction `parPartToInlines'`, and make `parPartToInlines` a wrapper around that.
* Docx reader: tests for removing unused anchors.Jesse Rosenthal2017-12-30
|
* Docx reader: Read multiple children of w:sdtContents`Jesse Rosenthal2017-12-30
| | | | | | | | Previously we had only read the first child of an sdtContents tag. Now we replace sdt with all children of the sdtContents tag. This changes the expected test result of our nested_anchors test, since now we read docx's generated TOCs.
* Docx reader: add tests for structured document tags unwrapping.Jesse Rosenthal2017-12-27
|
* Docx writer: Add tests for list continuation.Jesse Rosenthal2017-12-13
|
* Add `empty_paragraphs` extension.John MacFarlane2017-12-04
| | | | | | | | | | | | | | | | * Deprecate `--strip-empty-paragraphs` option. Instead we now use an `empty_paragraphs` extension that can be enabled on the reader or writer. By default, disabled. * Add `Ext_empty_paragraphs` constructor to `Extension`. * Revert "Docx reader: don't strip out empty paragraphs." This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b. * Implement `empty_paragraphs` extension in docx reader and writer, opendocument writer, html reader and writer. * Add tests for `empty_paragraphs` extension.
* Docx reader: don't strip out empty paragraphs.John MacFarlane2017-12-02
| | | | | | | | | | We now have the `--strip-empty-paragraphs` option for that, if you want it. Closes #2252. Updated docx reader tests. We use stripEmptyParagraphs to avoid changing too many tests. We should add new tests for empty paragraphs.
* Removed old adjacent_links test for docx reader.John MacFarlane2017-10-27
| | | | | | See #2270 for background -- this test blocked the consistent underline change and was hard to revise, so for now we are removing it.
* Consistent underline for Readers (#2270)hftf2017-10-27
| | | | | | | | | | | | | | * Added underlineSpan builder function. This can be easily updated if needed. The purpose is for Readers to transform underlines consistently. * Docx Reader: Use underlineSpan and update test * Org Reader: Use underlineSpan and add test * Textile Reader: Use underlineSpan and add test case * Txt2Tags Reader: Use underlineSpan and update test * HTML Reader: Use underlineSpan and add test case
* Docx reader: Add tests for avoiding zero-level header.Jesse Rosenthal2017-08-06
|
* Moved tests/ -> test/.John MacFarlane2017-02-04