Commit Graph

15 Commits

Author SHA1 Message Date
2bd4aacdd5 #2388 - Add default tab stop (#2470)
* #2388 - Check for undefined rather than falsey

* Add default tab stop

* Add back tab stop positions

* Add test for default tab stop
2023-12-24 03:37:36 +00:00
e69b063687 Porting tests over to vitest 2023-06-05 00:33:43 +01:00
988987ddbe #1126 - Add all comptability options 2022-10-29 15:10:02 +01:00
982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
60b7ce4785 clean up settings; BREAKING: TableOfContents requires Document features.updateFields = true setting 2021-05-26 08:36:05 +03:00
131183ae19 #613 #439 Even and odd headers 2021-03-16 00:57:27 +00:00
10455a534f #332 Compatability mode 2021-02-27 01:40:55 +00:00
ed52ef358b Background color for document 2020-10-27 01:54:40 +00:00
2adfe532dd add more unit tests for trackRevision settings 2020-10-06 11:05:52 +02: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
b179facca2 Add setting for not justify lines ending in soft line break 2019-03-05 17:17:06 +01:00
4742cf0f3f Clean imports 2018-10-26 01:04:07 +01:00
c07b5cf709 added settings.xml back 2018-09-20 10:11:59 -03:00
0eb36be053 there is no need for the settings.xml file anymore 2018-09-17 22:09:05 -03:00
146d0ad9e5 Moved addTableOfContents to File and creating a settings.xml and applying updateFields=true when there is a table of contents 2018-09-10 10:01:26 -03:00