Commit Graph

9 Commits

Author SHA1 Message Date
de03f19b46 Remove unused code and improve coverage 2019-12-24 00:44:15 +00:00
e8410ff692 fix lint 2019-11-08 11:22:27 +01:00
3427d220c7 fix hyperlink id 2019-11-08 11:01:26 +01:00
1f51fd7a31 Remove usage of Utility 2019-06-27 01:35:58 +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
4742cf0f3f Clean imports 2018-10-26 01:04:07 +01:00
985ea30d36 tests 2018-07-24 16:56:27 -04:00
68cb57aea6 fix style issues 2018-05-06 23:18:00 -05:00
ac40e13e33 added support for hyperlinks 2018-05-06 22:20:56 -05:00