aboutsummaryrefslogtreecommitdiff
path: root/test/writer.opendocument
AgeCommit message (Collapse)Author
2023-04-28Writers.ODT: stop validator complaints by producing ODF 1.3Michael Stahl
The ODF validator complains about an invalid attribute style:contextual-spacing in styles.xml, ultimately an implementation error in whatever old version of LibreOffice that produced the data/odt/styles.xml (should have put it into an extension namespace). Fortunately the attribute was added to ODF 1.3, which was released a couple years ago. So the easiest fix is to simply produce ODF 1.3 instead of 1.2; it's supposed to be fully backward compatible.
2021-12-28OpenDocument writer: fix vertical align bug with display math.John MacFarlane
Previously some displayed formulas would be floated above a preceding text line. This is fixed by setting vertical-rel to 'text' rather than 'paragraph-content'. Closes #7777.
2021-09-21Use pretty-simple to format native output.John MacFarlane
Previously we used our own homespun formatting. But this produces over-long lines that aren't ideal for diffs in tests. Easier to use something off-the-shelf and standard. Closes #7580. Performance is slower by about a factor of 10, but this isn't really a problem because native isn't suitable as a serialization format. (For serialization you should use json, because the reader is so much faster than native.)
2019-10-30Use latest doclayout.John MacFarlane
Closes #5863.
2019-06-12OpenDocument writer: Avoid duplicate attributes.John MacFarlane
We use the innermost attribute in nested cases. Closes #4634.
2019-06-08Roll back automatic figure/table numbering in ODT/OpenDocument.John MacFarlane
This was added in pandoc 2.7.2, but it makes it impossible to use pandoc-crossref. So this has been rolled back for now, until we find a good solution to make this behavior optional (or a creative way to let pandoc-crossref and this feature to coexist). See #5474.
2019-02-25Shared.compactify: Avoid mixed lists.John MacFarlane
This improves on the original fix to #5285 by preventing other mixed lists (lists with a mix of Plain and Para elements) that were allowed given the original fix.
2018-11-22OpenDocument writer: small amendment to #5095.John MacFarlane
Level one lists should start at 0.5in rather than 0.75in. (At least this is how LibreOffice behaves for me with a new document.)
2018-11-22ODT writer: Fix list indentationNils Carlson
Previously lists were indented by half an inch on the first line for each level of nesting. This resulted in lists that looked like this: 1. The first line of the list point text the second line of the same list point. Fix this and bring style into line with libreoffice standards: 1. The first line of the list point text the second line of the list point text.
2018-10-03OpenDocument writer: Implement figure numbering in captions (#4944)Nils Carlson
Figure captions are now numbered 1, 2, 3, ... The format in the caption is "Figure 1: <caption>" and so on. This is necessary in order for libreoffice to generate an Illustration Index (Table of Figures) for included figures.
2018-10-02OpenDocument writer: improve bullet/numbering alignment.John MacFarlane
This patch eliminates the large gap we used to have between bullet and text, and also ensures that numbers in numbered lists will be right-aligned. Closes #4385.
2018-05-14Make internal links work in ODT/OpenDocument.John MacFarlane
This adds proper bookmarks to the headers with non-null IDs. Closes #4358.
2017-12-28improve formatting of formulas in OpenDocumentoltolm
2017-05-25Added `spaced_reference_links` extension.John MacFarlane
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
2017-04-01OpenDocument writer: wider labels for lists.John MacFarlane
This avoids overly narrow labels for ordered lists with () delimiters. However, arguably it creates overly wide labels for bullets. Also, lists now start flush with the margin, rather than indented. Fixes #2421.
2017-03-15OpenDocument writer: use more widely available bullet characters.John MacFarlane
The old characters weren't available in some font sets. These seem to work well on Windows and Linux versions of LibreOffice. Closes #1400.
2017-02-04Moved tests/ -> test/.John MacFarlane