Commit Graph

14 Commits

Author SHA1 Message Date
9c11653313 Multiple paragraphs in footnotes 2020-01-01 20:22:42 +00:00
b37aefdc8d Correctly exporting methods 2019-11-23 02:26:59 +00:00
e2574ec23b Turn methods into "add()" 2019-06-25 23:17:56 +01:00
fb65bb4207 Turn Run into a declaritive API 2019-06-17 01:51:57 +01:00
816cb54b14 Optimize XML output by properly constructing objects to send to the xml library so that it can produce proper empty elements.
Rework the way attributes are stored in ImportedXmlComponent to match elsewhere (required allowing for a null xmlKeys in the XmlAttributeComponent interface).
Rework the way paragraphs get added to the end of table cells if needed.
The goal in both reworks is to not mess around with the objects output from `prepForXml` if we can avoid it.
Made the output of RunProperties, ParagraphProperties, TableCellProperties, TableRowProperties, and TableProperties all optional based on whether they contain any attributes or children.  Changed code in PageBorders, TableCellMargin, and TableCellBorders that implemented this same thing by overriding `prepForXml` so that it uses the new XmlComponent subclass instead.
Removed commented out code that attempted to fix-up XML output and make proper empty elements.
Fixed all affected tests.
Turn off `no-null-keyword` in the linter as we need to use null to signal to the `xml` library to create an empty element with no attributes (`undefined` will not work in its place).

Fixes #306
2019-04-09 05:27:18 -04:00
7980f14efb Introduce some functional programming techniques 2018-11-02 02:51:57 +00:00
4742cf0f3f Clean imports 2018-10-26 01:04:07 +01:00
b8934c68f2 Add counter to footnotes 2018-06-30 23:50:02 +01:00
e5fae3af64 Add footnote test 2018-06-30 23:42:48 +01:00
34a92ab448 Use enums instead of strings 2018-06-30 23:41:57 +01:00
9f0e55b7b8 Add footnotes spec file 2018-06-29 19:49:19 +01:00
5dc82d8176 Add styles to footnote 2018-06-28 03:01:25 +01:00
044442b0d7 Add footnote classes 2018-06-25 19:50:19 +01:00
8cb8d3514a Add footnotes class 2018-06-11 00:45:21 +01:00