diff --git a/api/classes/index.AbstractNumbering.html b/api/classes/index.AbstractNumbering.html
index 3d2073d6de..81fe2b8674 100644
--- a/api/classes/index.AbstractNumbering.html
+++ b/api/classes/index.AbstractNumbering.html
@@ -35,7 +35,7 @@ Each abstract definition can contain up to 9 levels.
diff --git a/api/classes/index.Body.html b/api/classes/index.Body.html
index a3214c2c11..7dbbbda2ad 100644
--- a/api/classes/index.Body.html
+++ b/api/classes/index.Body.html
@@ -37,7 +37,7 @@ section. The last section's properties are stored as a direct child of the body
diff --git a/api/classes/index.Bookmark.html b/api/classes/index.Bookmark.html
index 21ad9b905b..cedee64b78 100644
--- a/api/classes/index.Bookmark.html
+++ b/api/classes/index.Bookmark.html
@@ -31,7 +31,7 @@ of a start marker, content, and an end marker.
diff --git a/api/classes/index.BookmarkEnd.html b/api/classes/index.BookmarkEnd.html
index 5452dcaf90..81fc5c1444 100644
--- a/api/classes/index.BookmarkEnd.html
+++ b/api/classes/index.BookmarkEnd.html
@@ -35,7 +35,7 @@ taken from bookmarkUniqueNumericId (see BookmarkStart)
diff --git a/api/classes/index.BookmarkStart.html b/api/classes/index.BookmarkStart.html
index 5bec42c46f..3cad4e27ea 100644
--- a/api/classes/index.BookmarkStart.html
+++ b/api/classes/index.BookmarkStart.html
@@ -37,7 +37,7 @@ same as a Bookmark's.
diff --git a/api/classes/index.CellMerge.html b/api/classes/index.CellMerge.html
index 4ac91e6341..175ff6fb5b 100644
--- a/api/classes/index.CellMerge.html
+++ b/api/classes/index.CellMerge.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.CellMergeAttributes.html b/api/classes/index.CellMergeAttributes.html
index 129548c0ce..76f46cfd87 100644
--- a/api/classes/index.CellMergeAttributes.html
+++ b/api/classes/index.CellMergeAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.CheckBoxSymbolElement.html b/api/classes/index.CheckBoxSymbolElement.html
index 509fb7bc59..6598917e31 100644
--- a/api/classes/index.CheckBoxSymbolElement.html
+++ b/api/classes/index.CheckBoxSymbolElement.html
@@ -33,7 +33,7 @@ specifying the Unicode character and font to render.
diff --git a/api/classes/index.CheckBoxUtil.html b/api/classes/index.CheckBoxUtil.html
index 9ea175ac46..b74c67fe47 100644
--- a/api/classes/index.CheckBoxUtil.html
+++ b/api/classes/index.CheckBoxUtil.html
@@ -33,7 +33,7 @@ including its checked state and the symbols used for checked and unchecked state
diff --git a/api/classes/index.CommentRangeEnd.html b/api/classes/index.CommentRangeEnd.html
index 1fc67b48b6..ab5809d244 100644
--- a/api/classes/index.CommentRangeEnd.html
+++ b/api/classes/index.CommentRangeEnd.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeStart with the same ID.
diff --git a/api/classes/index.CommentRangeStart.html b/api/classes/index.CommentRangeStart.html
index dcdadcdcdb..fb554e11d9 100644
--- a/api/classes/index.CommentRangeStart.html
+++ b/api/classes/index.CommentRangeStart.html
@@ -36,7 +36,7 @@ Must be paired with a CommentRangeEnd with the same ID.
diff --git a/api/classes/index.CommentReference.html b/api/classes/index.CommentReference.html
index 0b5150336a..87557c3768 100644
--- a/api/classes/index.CommentReference.html
+++ b/api/classes/index.CommentReference.html
@@ -36,7 +36,7 @@ It should be placed after the CommentRangeEnd element.
diff --git a/api/classes/index.Comments.html b/api/classes/index.Comments.html
index 63db133d9a..e876756532 100644
--- a/api/classes/index.Comments.html
+++ b/api/classes/index.Comments.html
@@ -35,7 +35,7 @@ threading is activated and thread data is generated for commentsExtended.xml.
diff --git a/api/classes/index.CommentsIds.html b/api/classes/index.CommentsIds.html
index bf7962482a..eac9c517f2 100644
--- a/api/classes/index.CommentsIds.html
+++ b/api/classes/index.CommentsIds.html
@@ -27,7 +27,7 @@ to a stable w16cid:durableId preserved by Word across edits.
diff --git a/api/classes/index.ConcreteHyperlink.html b/api/classes/index.ConcreteHyperlink.html
index 820cd59a7b..1e4d217fb1 100644
--- a/api/classes/index.ConcreteHyperlink.html
+++ b/api/classes/index.ConcreteHyperlink.html
@@ -30,7 +30,7 @@ Use InternalHyperlink or ExternalHyperlink for creating hyperlinks in documents.
diff --git a/api/classes/index.DeletedTableCell.html b/api/classes/index.DeletedTableCell.html
index c9c994971f..2627d5c09b 100644
--- a/api/classes/index.DeletedTableCell.html
+++ b/api/classes/index.DeletedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DeletedTableRow.html b/api/classes/index.DeletedTableRow.html
index cf09c5b625..231cdf4116 100644
--- a/api/classes/index.DeletedTableRow.html
+++ b/api/classes/index.DeletedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.DocumentDefaults.html b/api/classes/index.DocumentDefaults.html
index 4c946ee96a..842bb42ce4 100644
--- a/api/classes/index.DocumentDefaults.html
+++ b/api/classes/index.DocumentDefaults.html
@@ -34,7 +34,7 @@ paragraphs and runs in a document unless overridden by a style or direct formatt
diff --git a/api/classes/index.DrawingPatch.html b/api/classes/index.DrawingPatch.html
index 779de87f41..0e3cd99762 100644
--- a/api/classes/index.DrawingPatch.html
+++ b/api/classes/index.DrawingPatch.html
@@ -27,7 +27,7 @@ is one: it replaces the data of a chart made in Word.
diff --git a/api/classes/index.EndnoteIdReference.html b/api/classes/index.EndnoteIdReference.html
index 035d2395a1..2707e395f2 100644
--- a/api/classes/index.EndnoteIdReference.html
+++ b/api/classes/index.EndnoteIdReference.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.EndnoteReferenceRunAttributes.html b/api/classes/index.EndnoteReferenceRunAttributes.html
index 2ca257400b..1c418b2659 100644
--- a/api/classes/index.EndnoteReferenceRunAttributes.html
+++ b/api/classes/index.EndnoteReferenceRunAttributes.html
@@ -30,7 +30,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.Endnotes.html b/api/classes/index.Endnotes.html
index 1a6e7f5f90..8cabf435e6 100644
--- a/api/classes/index.Endnotes.html
+++ b/api/classes/index.Endnotes.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ExternalHyperlink.html b/api/classes/index.ExternalHyperlink.html
index ea9c987857..aeac262a0e 100644
--- a/api/classes/index.ExternalHyperlink.html
+++ b/api/classes/index.ExternalHyperlink.html
@@ -37,7 +37,7 @@ is converted to a ConcreteHyperlink with the relationship ID.
diff --git a/api/classes/index.FileChild.html b/api/classes/index.FileChild.html
index 703b790d35..def6701248 100644
--- a/api/classes/index.FileChild.html
+++ b/api/classes/index.FileChild.html
@@ -28,7 +28,7 @@ to the document body. Examples include Paragraph and Table.
diff --git a/api/classes/index.FootNotes.html b/api/classes/index.FootNotes.html
index 3224adb510..e7ed7f2a74 100644
--- a/api/classes/index.FootNotes.html
+++ b/api/classes/index.FootNotes.html
@@ -36,7 +36,7 @@ line used when footnotes continue across pages.
diff --git a/api/classes/index.FooterWrapper.html b/api/classes/index.FooterWrapper.html
index fe19c15ec3..4f1ed50bf4 100644
--- a/api/classes/index.FooterWrapper.html
+++ b/api/classes/index.FooterWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple footers for different page types.
diff --git a/api/classes/index.FootnoteReference.html b/api/classes/index.FootnoteReference.html
index eb880b6dd3..c1af804392 100644
--- a/api/classes/index.FootnoteReference.html
+++ b/api/classes/index.FootnoteReference.html
@@ -27,7 +27,7 @@ and the footnote content by using a unique identifier.
diff --git a/api/classes/index.GridSpan.html b/api/classes/index.GridSpan.html
index b830e299d4..4b2e28e03c 100644
--- a/api/classes/index.GridSpan.html
+++ b/api/classes/index.GridSpan.html
@@ -34,7 +34,7 @@ in the table grid. This is used to merge cells horizontally (column span).
diff --git a/api/classes/index.HeaderWrapper.html b/api/classes/index.HeaderWrapper.html
index ba15fa5186..ebf6b48d4e 100644
--- a/api/classes/index.HeaderWrapper.html
+++ b/api/classes/index.HeaderWrapper.html
@@ -29,7 +29,7 @@ Each section can have multiple headers for different page types.
diff --git a/api/classes/index.HpsMeasureElement.html b/api/classes/index.HpsMeasureElement.html
index 01da89fd32..2b5c74f6da 100644
--- a/api/classes/index.HpsMeasureElement.html
+++ b/api/classes/index.HpsMeasureElement.html
@@ -33,7 +33,7 @@ Values can be specified as numbers (interpreted as half-points) or with explicit
diff --git a/api/classes/index.IgnoreIfEmptyXmlComponent.html b/api/classes/index.IgnoreIfEmptyXmlComponent.html
index bdcb1f8da3..088f3b08ab 100644
--- a/api/classes/index.IgnoreIfEmptyXmlComponent.html
+++ b/api/classes/index.IgnoreIfEmptyXmlComponent.html
@@ -39,7 +39,7 @@ to be excluded from the output.
diff --git a/api/classes/index.ImageRun.html b/api/classes/index.ImageRun.html
index d40599c1b2..4885aaa55d 100644
--- a/api/classes/index.ImageRun.html
+++ b/api/classes/index.ImageRun.html
@@ -33,7 +33,7 @@ including JPG, PNG, GIF, BMP, and SVG. Optionally wraps the run in
diff --git a/api/classes/index.ImportedXmlComponent.html b/api/classes/index.ImportedXmlComponent.html
index eb6be6d5d0..844e8d2c11 100644
--- a/api/classes/index.ImportedXmlComponent.html
+++ b/api/classes/index.ImportedXmlComponent.html
@@ -30,7 +30,7 @@ templates or when you need to include pre-existing XML fragments.
diff --git a/api/classes/index.InitializableXmlComponent.html b/api/classes/index.InitializableXmlComponent.html
index 0e148ef636..0dbf73e479 100644
--- a/api/classes/index.InitializableXmlComponent.html
+++ b/api/classes/index.InitializableXmlComponent.html
@@ -30,7 +30,7 @@ create a new component that shares or extends the children of an existing compon
diff --git a/api/classes/index.InsertedTableCell.html b/api/classes/index.InsertedTableCell.html
index 213e3e6848..21709b53e3 100644
--- a/api/classes/index.InsertedTableCell.html
+++ b/api/classes/index.InsertedTableCell.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTableRow.html b/api/classes/index.InsertedTableRow.html
index 0b5aebb3cf..8fb21a75ef 100644
--- a/api/classes/index.InsertedTableRow.html
+++ b/api/classes/index.InsertedTableRow.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.InsertedTextRun.html b/api/classes/index.InsertedTextRun.html
index 73ec8fd620..62dc47e5d6 100644
--- a/api/classes/index.InsertedTextRun.html
+++ b/api/classes/index.InsertedTextRun.html
@@ -37,7 +37,7 @@ made the insertion and when.
diff --git a/api/classes/index.InternalHyperlink.html b/api/classes/index.InternalHyperlink.html
index 6bdc0098df..f49ef6cf32 100644
--- a/api/classes/index.InternalHyperlink.html
+++ b/api/classes/index.InternalHyperlink.html
@@ -36,7 +36,7 @@ The bookmark must exist in the document for the hyperlink to function.
diff --git a/api/classes/index.LastRenderedPageBreak.html b/api/classes/index.LastRenderedPageBreak.html
index b9a7cdf9e2..f35cae6086 100644
--- a/api/classes/index.LastRenderedPageBreak.html
+++ b/api/classes/index.LastRenderedPageBreak.html
@@ -23,7 +23,7 @@ This is typically generated by Word and not created manually.
diff --git a/api/classes/index.MathDegree.html b/api/classes/index.MathDegree.html
index 01f90cdcdc..fb501f96e5 100644
--- a/api/classes/index.MathDegree.html
+++ b/api/classes/index.MathDegree.html
@@ -28,7 +28,7 @@ For square roots, this element is typically hidden.
diff --git a/api/classes/index.MathFunctionName.html b/api/classes/index.MathFunctionName.html
index 6d7a971a9c..bd007d94af 100644
--- a/api/classes/index.MathFunctionName.html
+++ b/api/classes/index.MathFunctionName.html
@@ -28,7 +28,7 @@ that appears before the function argument.
diff --git a/api/classes/index.MathFunctionProperties.html b/api/classes/index.MathFunctionProperties.html
index b7d08451b2..6089544569 100644
--- a/api/classes/index.MathFunctionProperties.html
+++ b/api/classes/index.MathFunctionProperties.html
@@ -28,7 +28,7 @@ such as function name alignment and spacing.
diff --git a/api/classes/index.MathLimitUpper.html b/api/classes/index.MathLimitUpper.html
index 6d4e342994..574fa005bd 100644
--- a/api/classes/index.MathLimitUpper.html
+++ b/api/classes/index.MathLimitUpper.html
@@ -36,7 +36,7 @@ commonly used for mathematical notation like lim with conditions above.
diff --git a/api/classes/index.MathPreSubSuperScript.html b/api/classes/index.MathPreSubSuperScript.html
index 3d02c42e92..28561bd3d8 100644
--- a/api/classes/index.MathPreSubSuperScript.html
+++ b/api/classes/index.MathPreSubSuperScript.html
@@ -36,7 +36,7 @@ positioned before (to the left of) the base, commonly used in tensor notation.
diff --git a/api/classes/index.MathRadicalProperties.html b/api/classes/index.MathRadicalProperties.html
index fa5245fe42..d0987fe77b 100644
--- a/api/classes/index.MathRadicalProperties.html
+++ b/api/classes/index.MathRadicalProperties.html
@@ -28,7 +28,7 @@ such as whether to hide the degree (for square roots).
diff --git a/api/classes/index.MathRun.html b/api/classes/index.MathRun.html
index 22c50a700c..5054a550e4 100644
--- a/api/classes/index.MathRun.html
+++ b/api/classes/index.MathRun.html
@@ -36,7 +36,7 @@ similar to how Run contains text in regular paragraphs.
diff --git a/api/classes/index.MathSubSuperScript.html b/api/classes/index.MathSubSuperScript.html
index 5f95eede48..daf1129052 100644
--- a/api/classes/index.MathSubSuperScript.html
+++ b/api/classes/index.MathSubSuperScript.html
@@ -36,7 +36,7 @@ commonly used for tensor notation or indexed variables with exponents.
diff --git a/api/classes/index.Media.html b/api/classes/index.Media.html
index b12750ed0b..c9e3369c90 100644
--- a/api/classes/index.Media.html
+++ b/api/classes/index.Media.html
@@ -24,7 +24,7 @@ is stored with a unique key for retrieval.
diff --git a/api/classes/index.NextAttributeComponent.html b/api/classes/index.NextAttributeComponent.html
index d714fc2d05..cc9d1160d9 100644
--- a/api/classes/index.NextAttributeComponent.html
+++ b/api/classes/index.NextAttributeComponent.html
@@ -34,7 +34,7 @@ This gives more control but is more verbose than XmlAttributeComponent.
diff --git a/api/classes/index.OnOffElement.html b/api/classes/index.OnOffElement.html
index 1a75b29497..0fcdad597f 100644
--- a/api/classes/index.OnOffElement.html
+++ b/api/classes/index.OnOffElement.html
@@ -34,7 +34,7 @@ it is explicitly disabled. When the value is true, the attribute is often omitte
diff --git a/api/classes/index.Packer.html b/api/classes/index.Packer.html
index a72bbb8023..1e86e68eab 100644
--- a/api/classes/index.Packer.html
+++ b/api/classes/index.Packer.html
@@ -26,7 +26,7 @@ of the document structure into OOXML format and compression into a .docx ZIP arc
diff --git a/api/classes/index.PageBorders.html b/api/classes/index.PageBorders.html
index 956c6f5e3a..ff756115a2 100644
--- a/api/classes/index.PageBorders.html
+++ b/api/classes/index.PageBorders.html
@@ -34,7 +34,7 @@ including which pages display the borders and how they are positioned.
diff --git a/api/classes/index.PageReference.html b/api/classes/index.PageReference.html
index c1f5a92dce..8778b21f64 100644
--- a/api/classes/index.PageReference.html
+++ b/api/classes/index.PageReference.html
@@ -31,7 +31,7 @@ the specified bookmark, useful for cross-references like "see page 5".
diff --git a/api/classes/index.PageTextDirection.html b/api/classes/index.PageTextDirection.html
index 29df49a04b..01b1f7a04a 100644
--- a/api/classes/index.PageTextDirection.html
+++ b/api/classes/index.PageTextDirection.html
@@ -30,7 +30,7 @@ for all pages in a section.
diff --git a/api/classes/index.Paragraph.html b/api/classes/index.Paragraph.html
index a47bc86075..64a2b1ca4d 100644
--- a/api/classes/index.Paragraph.html
+++ b/api/classes/index.Paragraph.html
@@ -36,7 +36,7 @@ various inline elements such as text runs, images, hyperlinks, and bookmarks.
diff --git a/api/classes/index.ParagraphPropertiesChange.html b/api/classes/index.ParagraphPropertiesChange.html
index 57f666de8a..56676d37a9 100644
--- a/api/classes/index.ParagraphPropertiesChange.html
+++ b/api/classes/index.ParagraphPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.ParagraphPropertiesDefaults.html b/api/classes/index.ParagraphPropertiesDefaults.html
index 30d20e1ced..f372839d0f 100644
--- a/api/classes/index.ParagraphPropertiesDefaults.html
+++ b/api/classes/index.ParagraphPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all paragraphs in the document unless overridden.
diff --git a/api/classes/index.PositionalTab.html b/api/classes/index.PositionalTab.html
index 368846f225..c3bb3d353c 100644
--- a/api/classes/index.PositionalTab.html
+++ b/api/classes/index.PositionalTab.html
@@ -37,7 +37,7 @@ an exact alignment and position within the paragraph.
diff --git a/api/classes/index.RunPropertiesDefaults.html b/api/classes/index.RunPropertiesDefaults.html
index 5e0a57ecec..e67d6a916a 100644
--- a/api/classes/index.RunPropertiesDefaults.html
+++ b/api/classes/index.RunPropertiesDefaults.html
@@ -34,7 +34,7 @@ to all text runs in the document unless overridden by styles or direct formattin
diff --git a/api/classes/index.SectionProperties.html b/api/classes/index.SectionProperties.html
index f8b0922d7c..9b9965403e 100644
--- a/api/classes/index.SectionProperties.html
+++ b/api/classes/index.SectionProperties.html
@@ -35,7 +35,7 @@ A document can contain multiple sections with different properties.
diff --git a/api/classes/index.SectionPropertiesChange.html b/api/classes/index.SectionPropertiesChange.html
index 1c0981d8b3..d158270996 100644
--- a/api/classes/index.SectionPropertiesChange.html
+++ b/api/classes/index.SectionPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.SimpleField.html b/api/classes/index.SimpleField.html
index 62d2bb6922..c67eb14ac7 100644
--- a/api/classes/index.SimpleField.html
+++ b/api/classes/index.SimpleField.html
@@ -40,7 +40,7 @@ Simple fields are typically used for fields that don't require complex nesting.<
diff --git a/api/classes/index.SimpleMailMergeField.html b/api/classes/index.SimpleMailMergeField.html
index 17b53d65f8..85dfe5fc6f 100644
--- a/api/classes/index.SimpleMailMergeField.html
+++ b/api/classes/index.SimpleMailMergeField.html
@@ -30,7 +30,7 @@ It creates a MERGEFIELD that will be populated with data during mail merge.
diff --git a/api/classes/index.StringContainer.html b/api/classes/index.StringContainer.html
index cd28f4252f..4eab0c07d5 100644
--- a/api/classes/index.StringContainer.html
+++ b/api/classes/index.StringContainer.html
@@ -30,7 +30,7 @@ rather than an attribute.
diff --git a/api/classes/index.StringEnumValueElement.html b/api/classes/index.StringEnumValueElement.html
index a5bcc3a480..a1da39386a 100644
--- a/api/classes/index.StringEnumValueElement.html
+++ b/api/classes/index.StringEnumValueElement.html
@@ -33,7 +33,7 @@ type parameter to enforce type safety for enum values.
diff --git a/api/classes/index.StyleForParagraph.html b/api/classes/index.StyleForParagraph.html
index f52b3358c6..b7daf24b8a 100644
--- a/api/classes/index.StyleForParagraph.html
+++ b/api/classes/index.StyleForParagraph.html
@@ -35,7 +35,7 @@ run-level properties (font, size, color) for text within the paragraph.
diff --git a/api/classes/index.StyleLevel.html b/api/classes/index.StyleLevel.html
index 3d96c01e40..4bd650064b 100644
--- a/api/classes/index.StyleLevel.html
+++ b/api/classes/index.StyleLevel.html
@@ -20,7 +20,7 @@ custom styles to be included in the table of contents at specific levels.
diff --git a/api/classes/index.Styles.html b/api/classes/index.Styles.html
index cb8d1ab351..eebaf28d58 100644
--- a/api/classes/index.Styles.html
+++ b/api/classes/index.Styles.html
@@ -35,7 +35,7 @@ a way to define consistent formatting across a document.
diff --git a/api/classes/index.TDirection.html b/api/classes/index.TDirection.html
index 25700fc0f0..a524422d26 100644
--- a/api/classes/index.TDirection.html
+++ b/api/classes/index.TDirection.html
@@ -34,7 +34,7 @@ useful for creating rotated text or supporting different writing systems.
diff --git a/api/classes/index.Table.html b/api/classes/index.Table.html
index 67a7e380ac..184e159832 100644
--- a/api/classes/index.Table.html
+++ b/api/classes/index.Table.html
@@ -36,7 +36,7 @@ Tables are used to organize content into a grid structure.
diff --git a/api/classes/index.TableCellBorders.html b/api/classes/index.TableCellBorders.html
index ab3cd11814..bb0e630fde 100644
--- a/api/classes/index.TableCellBorders.html
+++ b/api/classes/index.TableCellBorders.html
@@ -34,7 +34,7 @@ can be configured independently with different styles, colors, and widths.
diff --git a/api/classes/index.TableOfContents.html b/api/classes/index.TableOfContents.html
index 52c569d0ae..5173c3aa23 100644
--- a/api/classes/index.TableOfContents.html
+++ b/api/classes/index.TableOfContents.html
@@ -40,7 +40,7 @@ The page numbers are left for Word to fill in when it updates the field.
diff --git a/api/classes/index.TableRow.html b/api/classes/index.TableRow.html
index 788eb8d86d..b6cf16342a 100644
--- a/api/classes/index.TableRow.html
+++ b/api/classes/index.TableRow.html
@@ -36,7 +36,7 @@ one or more table cells that hold the actual content.
diff --git a/api/classes/index.TableRowProperties.html b/api/classes/index.TableRowProperties.html
index ebffe2d096..ea943a07bf 100644
--- a/api/classes/index.TableRowProperties.html
+++ b/api/classes/index.TableRowProperties.html
@@ -30,7 +30,7 @@ whether it can split across pages, and whether it's a header row.
diff --git a/api/classes/index.TableRowPropertiesChange.html b/api/classes/index.TableRowPropertiesChange.html
index 497de29727..e37fee5547 100644
--- a/api/classes/index.TableRowPropertiesChange.html
+++ b/api/classes/index.TableRowPropertiesChange.html
@@ -31,7 +31,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/index.VerticalMerge.html b/api/classes/index.VerticalMerge.html
index 30d15f30a8..6a48d63b9d 100644
--- a/api/classes/index.VerticalMerge.html
+++ b/api/classes/index.VerticalMerge.html
@@ -35,7 +35,7 @@ This is used to create row spans in tables.
diff --git a/api/classes/index.WpsShapeRun.html b/api/classes/index.WpsShapeRun.html
index ed44139490..2de025f16b 100644
--- a/api/classes/index.WpsShapeRun.html
+++ b/api/classes/index.WpsShapeRun.html
@@ -28,7 +28,7 @@ options for fills, lines, effects and text layout, and can be any of the preset
diff --git a/api/classes/index.XmlAttributeComponent.html b/api/classes/index.XmlAttributeComponent.html
index 26d897b8e7..385d2d20ca 100644
--- a/api/classes/index.XmlAttributeComponent.html
+++ b/api/classes/index.XmlAttributeComponent.html
@@ -41,7 +41,7 @@ can define an xmlKeys map to specify the transformation.
diff --git a/api/classes/index.XmlComponent.html b/api/classes/index.XmlComponent.html
index f8b6ac9fad..3a5cb11f8e 100644
--- a/api/classes/index.XmlComponent.html
+++ b/api/classes/index.XmlComponent.html
@@ -129,7 +129,7 @@ the intermediate object format used by the xml serialization library.
diff --git a/api/classes/math.MathBrackets.html b/api/classes/math.MathBrackets.html
index a62c3fb983..069a8fa61c 100644
--- a/api/classes/math.MathBrackets.html
+++ b/api/classes/math.MathBrackets.html
@@ -29,7 +29,7 @@ with what they hold.
diff --git a/api/classes/math.MathLargeOperator.html b/api/classes/math.MathLargeOperator.html
index 4363f6294c..75c399cf15 100644
--- a/api/classes/math.MathLargeOperator.html
+++ b/api/classes/math.MathLargeOperator.html
@@ -28,7 +28,7 @@ it applies to. MathSum and MathIntegral are two of the
diff --git a/api/classes/math.MathMatrix.html b/api/classes/math.MathMatrix.html
index ad174c1ef1..e6f416bea6 100644
--- a/api/classes/math.MathMatrix.html
+++ b/api/classes/math.MathMatrix.html
@@ -30,7 +30,7 @@ and Pages centre every column.
diff --git a/api/classes/math.MathPhantom.html b/api/classes/math.MathPhantom.html
index 159f71b346..ae1277f564 100644
--- a/api/classes/math.MathPhantom.html
+++ b/api/classes/math.MathPhantom.html
@@ -28,7 +28,7 @@ line things up with it. Or math that is seen but takes up no room, or less, as <
diff --git a/api/classes/shapes.ShapeCanvasRun.html b/api/classes/shapes.ShapeCanvasRun.html
index 2363da4878..7857075dec 100644
--- a/api/classes/shapes.ShapeCanvasRun.html
+++ b/api/classes/shapes.ShapeCanvasRun.html
@@ -35,7 +35,7 @@ written in mc:AlternateContent, with the group as its fallback, unl
diff --git a/api/classes/shapes.ShapeGroupRun.html b/api/classes/shapes.ShapeGroupRun.html
index 82c0a5e87d..e321aef058 100644
--- a/api/classes/shapes.ShapeGroupRun.html
+++ b/api/classes/shapes.ShapeGroupRun.html
@@ -35,7 +35,7 @@ when shapes are moved on a
diff --git a/api/classes/shapes.ShapeRun.html b/api/classes/shapes.ShapeRun.html
index afcabc35a0..be7b804722 100644
--- a/api/classes/shapes.ShapeRun.html
+++ b/api/classes/shapes.ShapeRun.html
@@ -33,7 +33,7 @@ and arrowheads, and text inside it. It sits inline with text unless floati
diff --git a/api/classes/watermarks.ImageWatermark.html b/api/classes/watermarks.ImageWatermark.html
index e108f80647..f554b38cae 100644
--- a/api/classes/watermarks.ImageWatermark.html
+++ b/api/classes/watermarks.ImageWatermark.html
@@ -46,7 +46,7 @@ way as an ImageRun.
diff --git a/api/classes/watermarks.TextWatermark.html b/api/classes/watermarks.TextWatermark.html
index ac4aeb0b80..0ed0235ee8 100644
--- a/api/classes/watermarks.TextWatermark.html
+++ b/api/classes/watermarks.TextWatermark.html
@@ -44,7 +44,7 @@ recognizes it and can remove or replace it through that command.
\n option - causes the field result to be the paragraph number without trailing periods. No information about prior numbered levels is displayed unless it is included as part of the current level.
diff --git a/api/functions/index.convertToXmlComponent.html b/api/functions/index.convertToXmlComponent.html
index cda429e5cb..80c3b2c6e7 100644
--- a/api/functions/index.convertToXmlComponent.html
+++ b/api/functions/index.convertToXmlComponent.html
@@ -36,7 +36,7 @@ of the original XML.
diff --git a/api/functions/index.createEmphasisMark.html b/api/functions/index.createEmphasisMark.html
index e505d1e6c3..d720123e6e 100644
--- a/api/functions/index.createEmphasisMark.html
+++ b/api/functions/index.createEmphasisMark.html
@@ -37,7 +37,7 @@ text to emphasize it. This is commonly used in East Asian typography.
diff --git a/api/functions/index.createFrameProperties.html b/api/functions/index.createFrameProperties.html
index f317153a4b..4451020449 100644
--- a/api/functions/index.createFrameProperties.html
+++ b/api/functions/index.createFrameProperties.html
@@ -41,7 +41,7 @@ drop cap effects and various text wrapping options.
diff --git a/api/functions/index.createHorizontalPosition.html b/api/functions/index.createHorizontalPosition.html
index 0933e5e018..5855b3fbec 100644
--- a/api/functions/index.createHorizontalPosition.html
+++ b/api/functions/index.createHorizontalPosition.html
@@ -40,7 +40,7 @@ object relative to a base element (page, margin, column, etc.).
diff --git a/api/functions/index.createMathAccentCharacter.html b/api/functions/index.createMathAccentCharacter.html
index 0919393148..7b2e4a21f7 100644
--- a/api/functions/index.createMathAccentCharacter.html
+++ b/api/functions/index.createMathAccentCharacter.html
@@ -31,7 +31,7 @@ such as summation (∑), integral (∫), or product (∏) symbols.
diff --git a/api/functions/index.createMathNAryProperties.html b/api/functions/index.createMathNAryProperties.html
index 0c056fcc88..01df5d7ab9 100644
--- a/api/functions/index.createMathNAryProperties.html
+++ b/api/functions/index.createMathNAryProperties.html
@@ -31,7 +31,7 @@ and integrals, including the operator character and limit positioning.
diff --git a/api/functions/index.createMathSubScriptElement.html b/api/functions/index.createMathSubScriptElement.html
index 3f0fbb66c5..672b77317a 100644
--- a/api/functions/index.createMathSubScriptElement.html
+++ b/api/functions/index.createMathSubScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support subscripts.
diff --git a/api/functions/index.createMathSuperScriptElement.html b/api/functions/index.createMathSuperScriptElement.html
index 55bd0a9c49..6a73019444 100644
--- a/api/functions/index.createMathSuperScriptElement.html
+++ b/api/functions/index.createMathSuperScriptElement.html
@@ -31,7 +31,7 @@ script objects, and other structures that support superscripts.
diff --git a/api/functions/index.createPageNumberType.html b/api/functions/index.createPageNumberType.html
index 84c2441c8d..9883c89b1f 100644
--- a/api/functions/index.createPageNumberType.html
+++ b/api/functions/index.createPageNumberType.html
@@ -37,7 +37,7 @@ for all pages in a section.
diff --git a/api/functions/index.createSectionType.html b/api/functions/index.createSectionType.html
index 4c3823c87e..b4b16a7c47 100644
--- a/api/functions/index.createSectionType.html
+++ b/api/functions/index.createSectionType.html
@@ -37,7 +37,7 @@ where the new section begins relative to the previous section.
diff --git a/api/functions/index.createTableFloatProperties.html b/api/functions/index.createTableFloatProperties.html
index 16587ef2a2..e96bbd3c5f 100644
--- a/api/functions/index.createTableFloatProperties.html
+++ b/api/functions/index.createTableFloatProperties.html
@@ -38,7 +38,7 @@ The overlap option isn't part of it: the table properties write it as w:tblOverl
diff --git a/api/functions/index.createTableLook.html b/api/functions/index.createTableLook.html
index 5d4cdc131a..9564f402a8 100644
--- a/api/functions/index.createTableLook.html
+++ b/api/functions/index.createTableLook.html
@@ -34,7 +34,7 @@ styles to apply special formatting to specific regions of the table.
diff --git a/api/functions/index.createTableRowHeight.html b/api/functions/index.createTableRowHeight.html
index 434b97b773..3f31572199 100644
--- a/api/functions/index.createTableRowHeight.html
+++ b/api/functions/index.createTableRowHeight.html
@@ -38,7 +38,7 @@ determining how the height should be applied.
diff --git a/api/functions/index.createWrapNone.html b/api/functions/index.createWrapNone.html
index b9745c4b35..881f549237 100644
--- a/api/functions/index.createWrapNone.html
+++ b/api/functions/index.createWrapNone.html
@@ -23,7 +23,7 @@ without wrapping around it.
diff --git a/api/functions/index.createWrapSquare.html b/api/functions/index.createWrapSquare.html
index 60d413fff4..97290efbed 100644
--- a/api/functions/index.createWrapSquare.html
+++ b/api/functions/index.createWrapSquare.html
@@ -32,7 +32,7 @@ of the drawing on the specified side(s).
diff --git a/api/functions/index.createWrapThrough.html b/api/functions/index.createWrapThrough.html
index d5dace27c2..1d7275e6b7 100644
--- a/api/functions/index.createWrapThrough.html
+++ b/api/functions/index.createWrapThrough.html
@@ -36,7 +36,7 @@ fills any open space inside the drawing, such as the middle of a ring.
diff --git a/api/functions/index.createWrapTight.html b/api/functions/index.createWrapTight.html
index 9963c1bff9..d8e0062c55 100644
--- a/api/functions/index.createWrapTight.html
+++ b/api/functions/index.createWrapTight.html
@@ -36,7 +36,7 @@ of the drawing rather than its rectangular bounding box.
diff --git a/api/functions/index.dateTimeValue.html b/api/functions/index.dateTimeValue.html
index 7acdbc2e56..037baf7e38 100644
--- a/api/functions/index.dateTimeValue.html
+++ b/api/functions/index.dateTimeValue.html
@@ -36,7 +36,7 @@ This matches the xsd:dateTime format required by OOXML.
diff --git a/api/functions/index.fillPageNumbers.html b/api/functions/index.fillPageNumbers.html
index 757b788e56..ee9728a60c 100644
--- a/api/functions/index.fillPageNumbers.html
+++ b/api/functions/index.fillPageNumbers.html
@@ -28,7 +28,7 @@ didn't work out is left as it is. The estimate is kept for the document's header
diff --git a/api/functions/index.fillPartPageNumbers.html b/api/functions/index.fillPartPageNumbers.html
index 13ca079a59..bdd7f8499d 100644
--- a/api/functions/index.fillPartPageNumbers.html
+++ b/api/functions/index.fillPartPageNumbers.html
@@ -33,7 +33,7 @@ footer that show them, once the document's body is written.
diff --git a/api/functions/index.hpsMeasureValue.html b/api/functions/index.hpsMeasureValue.html
index c638f2a492..7212da3d4a 100644
--- a/api/functions/index.hpsMeasureValue.html
+++ b/api/functions/index.hpsMeasureValue.html
@@ -36,7 +36,7 @@ HPS (half-points) are commonly used for font sizes.
diff --git a/api/functions/index.patchDocument.html b/api/functions/index.patchDocument.html
index f86ac5ebbd..5141b1c2d8 100644
--- a/api/functions/index.patchDocument.html
+++ b/api/functions/index.patchDocument.html
@@ -42,7 +42,7 @@ the original document structure and optionally the original formatting.
diff --git a/api/functions/index.universalMeasureToTwips.html b/api/functions/index.universalMeasureToTwips.html
index 2ad347c244..a1b4182625 100644
--- a/api/functions/index.universalMeasureToTwips.html
+++ b/api/functions/index.universalMeasureToTwips.html
@@ -35,7 +35,7 @@ Strings are converted according to their unit suffix.
diff --git a/api/functions/layout.estimatePageNumbers.html b/api/functions/layout.estimatePageNumbers.html
index 3968e4c4cf..95b6f9f34f 100644
--- a/api/functions/layout.estimatePageNumbers.html
+++ b/api/functions/layout.estimatePageNumbers.html
@@ -41,7 +41,7 @@ Word to fill in when it updates the fields.
diff --git a/api/functions/layout.estimatePageNumbersWith.html b/api/functions/layout.estimatePageNumbersWith.html
index 81fbcc87a7..c563bc7897 100644
--- a/api/functions/layout.estimatePageNumbersWith.html
+++ b/api/functions/layout.estimatePageNumbersWith.html
@@ -31,7 +31,7 @@ options say. Give what it returns to a document as its pageNumbers:
diff --git a/api/functions/layout.measureWithPretext.html b/api/functions/layout.measureWithPretext.html
index 63c63ae6df..4b0e681a77 100644
--- a/api/functions/layout.measureWithPretext.html
+++ b/api/functions/layout.measureWithPretext.html
@@ -40,7 +40,7 @@ measures text in another, and Pretext keeps the widths it measured.
diff --git a/api/functions/math.latexToMath.html b/api/functions/math.latexToMath.html
index 29abccaff9..ff910811bb 100644
--- a/api/functions/math.latexToMath.html
+++ b/api/functions/math.latexToMath.html
@@ -44,7 +44,7 @@ cases and aligned equations, with \tag for their numbers. The math
diff --git a/api/interfaces/index.IXmlableObject.html b/api/interfaces/index.IXmlableObject.html
index 687f6da1f3..4483bd5247 100644
--- a/api/interfaces/index.IXmlableObject.html
+++ b/api/interfaces/index.IXmlableObject.html
@@ -31,7 +31,7 @@ to generate the final XML output. Objects typically have a structure like:
diff --git a/api/types/charts.BarChartBaseOptions.html b/api/types/charts.BarChartBaseOptions.html
index 8e87e52474..3191a3ae7d 100644
--- a/api/types/charts.BarChartBaseOptions.html
+++ b/api/types/charts.BarChartBaseOptions.html
@@ -31,7 +31,7 @@ Default is Office's: -27 for column charts and 0 for bar charts. Stacked bars al
@@ -49,14 +49,14 @@ bar, line or area chart spaces them by date
Sales. 2025: Jan 10, Feb 20.", and none for a decorative chart. An empty description removes it
+
diff --git a/api/types/charts.CategoryChartOptions.html b/api/types/charts.CategoryChartOptions.html
index bc09e70b18..d31b63d215 100644
--- a/api/types/charts.CategoryChartOptions.html
+++ b/api/types/charts.CategoryChartOptions.html
@@ -59,7 +59,7 @@ in years, are labelled in rows, the groups below their categories
diff --git a/api/types/charts.ChartAxisCrossing.html b/api/types/charts.ChartAxisCrossing.html
index fd2ec07ea4..abab0d42dd 100644
--- a/api/types/charts.ChartAxisCrossing.html
+++ b/api/types/charts.ChartAxisCrossing.html
@@ -20,7 +20,7 @@ the value is the category's number, from 1, or when the categories are dates, a
diff --git a/api/types/charts.ChartAxisGroup.html b/api/types/charts.ChartAxisGroup.html
index c4efb100a5..ec29eb2a46 100644
--- a/api/types/charts.ChartAxisGroup.html
+++ b/api/types/charts.ChartAxisGroup.html
@@ -19,7 +19,7 @@ chart's are along the bottom and the top.
diff --git a/api/types/charts.ChartCategoryGroup.html b/api/types/charts.ChartCategoryGroup.html
index f8ebbda3d8..664c291fb1 100644
--- a/api/types/charts.ChartCategoryGroup.html
+++ b/api/types/charts.ChartCategoryGroup.html
@@ -20,7 +20,7 @@ categories, or groups of its own, such as the months of each quarter of each yea
@@ -67,21 +67,21 @@ a point, and where they fit best on a pie. A chart's position is for the series
another way keep Office's, unless their own labels give one
diff --git a/api/types/charts.ChartDataPatchOptions.html b/api/types/charts.ChartDataPatchOptions.html
index dfdfecf069..63d682dfbb 100644
--- a/api/types/charts.ChartDataPatchOptions.html
+++ b/api/types/charts.ChartDataPatchOptions.html
@@ -19,7 +19,7 @@ series' points, or for a stock chart its prices.
diff --git a/api/types/charts.ChartErrorBarsAmount.html b/api/types/charts.ChartErrorBarsAmount.html
index c325a4f891..a14f8c3196 100644
--- a/api/types/charts.ChartErrorBarsAmount.html
+++ b/api/types/charts.ChartErrorBarsAmount.html
@@ -64,7 +64,7 @@ deviations, or the standard error.
diff --git a/api/types/charts.ChartLineDash.html b/api/types/charts.ChartLineDash.html
index 05547206af..7eb76d6c38 100644
--- a/api/types/charts.ChartLineDash.html
+++ b/api/types/charts.ChartLineDash.html
@@ -19,7 +19,7 @@ and so on.
diff --git a/api/types/charts.ChartPointLabel.html b/api/types/charts.ChartPointLabel.html
index ecf305662c..2d879f4b84 100644
--- a/api/types/charts.ChartPointLabel.html
+++ b/api/types/charts.ChartPointLabel.html
@@ -19,7 +19,7 @@ format and its font. Anything left out is as the series' labels have it.
diff --git a/api/types/charts.ChartTrendline.html b/api/types/charts.ChartTrendline.html
index 9aa59bae7c..a3212bba63 100644
--- a/api/types/charts.ChartTrendline.html
+++ b/api/types/charts.ChartTrendline.html
@@ -20,7 +20,7 @@ forecast. It is drawn as a dotted line in the series' colour, and has an entry i
@@ -57,7 +57,7 @@ forecast. It is drawn as a dotted line in the series' colour, and has an entry i
along the x axis. Default is 0. Not for moving averages
@@ -73,35 +73,35 @@ the x axis. Default is 0. Not for moving averages
linear, exponential and polynomial trendlines, and above 0 for exponential ones
+
diff --git a/api/types/charts.ChartValueAxis.html b/api/types/charts.ChartValueAxis.html
index 3ac644a1f2..d2da59abc6 100644
--- a/api/types/charts.ChartValueAxis.html
+++ b/api/types/charts.ChartValueAxis.html
@@ -43,7 +43,7 @@ of 0 or less can't be shown. Default is a linear scale
diff --git a/api/types/charts.ComboChartSeriesType.html b/api/types/charts.ComboChartSeriesType.html
index e46bdd3b85..b7fe5899fd 100644
--- a/api/types/charts.ComboChartSeriesType.html
+++ b/api/types/charts.ComboChartSeriesType.html
@@ -19,7 +19,7 @@ or an area. A chart with series of more than one type is Word's "Combo"
@@ -59,14 +59,14 @@ with undefined, takes the next of the theme's accent colours
one for each slice in the order of the categories, where undefined leaves a slice in. Default is 0
+
diff --git a/api/types/charts.SplitPieChartBaseOptions.html b/api/types/charts.SplitPieChartBaseOptions.html
index c04b32a3af..3194e377da 100644
--- a/api/types/charts.SplitPieChartBaseOptions.html
+++ b/api/types/charts.SplitPieChartBaseOptions.html
@@ -42,7 +42,7 @@ second pie or a stacked bar, joined to the slice of the pie that stands for them
diff --git a/api/types/index.AttributePayload.html b/api/types/index.AttributePayload.html
index 32f9d454d6..000803b3b1 100644
--- a/api/types/index.AttributePayload.html
+++ b/api/types/index.AttributePayload.html
@@ -21,7 +21,7 @@ control over attribute name mapping.
Specifies the additional length, in EMUs, which shall be added to the bottom edge of the DrawingML object to determine its actual bottom edge including effects.
Specifies the additional length, in EMUs, which shall be added to the left edge of the DrawingML object to determine its actual left edge including effects.
Specifies the additional length, in EMUs, which shall be added to the right edge of the DrawingML object to determine its actual right edge including effects.
Specifies the additional length, in EMUs, which shall be added to the top edge of the DrawingML object to determine its actual top edge including effects.
@@ -57,7 +57,7 @@ name. The page references to a bookmark that isn't in it are left blank.
in headers and footers only on its pages, show. Those of a section whose number is undefined are left blank.
+
diff --git a/api/types/index.GraphicMediaData.html b/api/types/index.GraphicMediaData.html
index c6300a154c..9442029b49 100644
--- a/api/types/index.GraphicMediaData.html
+++ b/api/types/index.GraphicMediaData.html
@@ -25,7 +25,7 @@ graphic it is. This is how docx/shapes writes its shapes.
diff --git a/api/types/index.IContext.html b/api/types/index.IContext.html
index 39a5487279..ca1e4afa6b 100644
--- a/api/types/index.IContext.html
+++ b/api/types/index.IContext.html
@@ -18,7 +18,7 @@ during the conversion of components to XML.
diff --git a/api/types/index.ICropOptions.html b/api/types/index.ICropOptions.html
index 83dd06ad13..5cfc33b6b3 100644
--- a/api/types/index.ICropOptions.html
+++ b/api/types/index.ICropOptions.html
@@ -19,7 +19,7 @@ side of the image.
The grid can define a grid which snaps all East Asian characters to grid positions, but leaves Latin text with its default spacing; a grid which adds the specified character pitch to each character on each row; or a grid which affects only the line pitch for the current section.
Specifies that the paragraph (or at least part of it) should be rendered on the same page as the next paragraph when possible. If multiple paragraphs are to be kept together but they exceed a page, then the set of paragraphs begin on a new page and page breaks are used thereafter as needed.
diff --git a/api/types/index.IRunOptions.html b/api/types/index.IRunOptions.html
index a265bb1dc4..13cf60840a 100644
--- a/api/types/index.IRunOptions.html
+++ b/api/types/index.IRunOptions.html
@@ -21,7 +21,7 @@ The children property can contain various inline content elements.
diff --git a/api/types/index.IRunStylePropertiesOptions.html b/api/types/index.IRunStylePropertiesOptions.html
index fd17155742..1910929f61 100644
--- a/api/types/index.IRunStylePropertiesOptions.html
+++ b/api/types/index.IRunStylePropertiesOptions.html
@@ -19,7 +19,7 @@ including font, size, bold, italic, underline, color, and other character format
@@ -140,117 +140,117 @@ including font, size, bold, italic, underline, color, and other character format
highlights all the run's text. docx used to write it as w:highlightCs, which is in no schema.
diff --git a/api/types/index.ITableCellBorders.html b/api/types/index.ITableCellBorders.html
index 9c0d09aa9f..d3c9193749 100644
--- a/api/types/index.ITableCellBorders.html
+++ b/api/types/index.ITableCellBorders.html
@@ -22,7 +22,7 @@ can be specified for top, bottom, left, right, start, and end edges.
@@ -46,7 +46,7 @@ If relativeHorizontalPosition is also specified, then the absoluteHorizontalPosi
If the attribute is omitted, the value is assumed to be zero.
@@ -57,7 +57,7 @@ If relativeVerticalPosition is also specified, then the absoluteVerticalPosition
If the attribute is omitted, the value is assumed to be zero.
@@ -65,7 +65,7 @@ If the attribute is omitted, the value is assumed to be zero.
below the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -85,7 +85,7 @@ If omitted, the value is assumed to be page.
to the left of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -121,7 +121,7 @@ inline - the table should be vertically aligned in line with the surrounding tex
top - the table should be vertically aligned to the top edge of the anchor
+
@@ -129,7 +129,7 @@ top - the table should be vertically aligned to the top edge of the anchor
to the right of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -137,7 +137,7 @@ to the right of the table. The value is in twentieths of a point. If omitted, th
above the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero.
+
@@ -88,7 +88,7 @@ When true, horizontal banding (alternating row colors) is disabled.
When false or undefined, horizontal banding is enabled if defined in the table style.
+
@@ -97,7 +97,7 @@ When true, vertical banding (alternating column colors) is disabled.
When false or undefined, vertical banding is enabled if defined in the table style.
+
diff --git a/api/types/index.ITableOfContentsOptions.html b/api/types/index.ITableOfContentsOptions.html
index ad5ba7419b..60db2bc739 100644
--- a/api/types/index.ITableOfContentsOptions.html
+++ b/api/types/index.ITableOfContentsOptions.html
@@ -23,7 +23,7 @@ Options correspond to field switches in the TOC field code.
@@ -59,7 +59,7 @@ The identifier designated by text in this switch's field-argument corresponds to
Use captionLabelIncludingNumbers (\c) to build a table of captions with labels and numbers.
@@ -85,7 +85,7 @@ the bookmark named by text in this switch's field-argument.
that separate an entry and its page number. The default is a tab with leader dots.
+
@@ -96,21 +96,21 @@ to the style with a style ID of HeadingX (e.g. 1 corresponds to Heading1).
If no heading range is specified, all heading levels used in the document are listed.
+
@@ -119,21 +119,21 @@ Page numbers are omitted from all levels unless a range of entry levels is speci
text in this switch's field-argument. A range is specified as for \l.
+
@@ -168,7 +168,7 @@ with each doublet being a comma-separated set of style name and table of content
text in this switch's field-argument (which is typically a letter).
+
@@ -178,14 +178,14 @@ where startLevel and endLevel are integers, and startLevel has a value equal-to
TC fields that assign entries to lower levels are skipped.
+
@@ -76,64 +76,64 @@ parent cell) when the document is packed, so the table renders the same in every
consumer. Supply explicit values to take full control of the grid.
diff --git a/api/types/index.IThemeColorsOptions.html b/api/types/index.IThemeColorsOptions.html
index f983032f1d..2f20fbd765 100644
--- a/api/types/index.IThemeColorsOptions.html
+++ b/api/types/index.IThemeColorsOptions.html
@@ -21,7 +21,7 @@ when the theme's colors change. The colors not given are Office's.
diff --git a/api/types/index.IXmlAttribute.html b/api/types/index.IXmlAttribute.html
index 421dcfee3c..3e616721fb 100644
--- a/api/types/index.IXmlAttribute.html
+++ b/api/types/index.IXmlAttribute.html
@@ -17,7 +17,7 @@
numbers, or booleans, which will be converted to strings in the final XML.
diff --git a/api/types/index.MathRunStyle.html b/api/types/index.MathRunStyle.html
index 45b0b59d27..20d544511b 100644
--- a/api/types/index.MathRunStyle.html
+++ b/api/types/index.MathRunStyle.html
@@ -23,7 +23,7 @@
alphabet other than roman is plain unless given a style, as LaTeX draws its alphabets upright.
diff --git a/api/types/index.OutputByType.html b/api/types/index.OutputByType.html
index f4d47944d8..a8618dc506 100644
--- a/api/types/index.OutputByType.html
+++ b/api/types/index.OutputByType.html
@@ -24,7 +24,7 @@ format determines the return type. Based on JSZip's output types.
diff --git a/api/types/index.PageNumberEstimator.html b/api/types/index.PageNumberEstimator.html
index c7712a4411..07e7b8da05 100644
--- a/api/types/index.PageNumberEstimator.html
+++ b/api/types/index.PageNumberEstimator.html
@@ -38,7 +38,7 @@ page counts can be written with it.
diff --git a/api/types/index.ParagraphChild.html b/api/types/index.ParagraphChild.html
index 52a0760d19..1b9145ed85 100644
--- a/api/types/index.ParagraphChild.html
+++ b/api/types/index.ParagraphChild.html
@@ -17,7 +17,7 @@ This union type represents all valid inline content elements that can appear
within a paragraph in WordprocessingML.
diff --git a/api/types/index.RelationshipType.html b/api/types/index.RelationshipType.html
index 863c9c8eb8..16901615dd 100644
--- a/api/types/index.RelationshipType.html
+++ b/api/types/index.RelationshipType.html
@@ -17,7 +17,7 @@
Each type corresponds to a specific kind of document component or resource.
diff --git a/api/types/index.TableRowsPatch.html b/api/types/index.TableRowsPatch.html
index 675194d61a..f3a4eefc9c 100644
--- a/api/types/index.TableRowsPatch.html
+++ b/api/types/index.TableRowsPatch.html
@@ -32,7 +32,7 @@ none. The other patches are applied after the rows are repeated, so a placeholde
@@ -55,14 +55,14 @@ A field's patch can repeat rows of a table in the copy in turn, whose fields are
repeated for each part, with its item's fields, and an item without parts has no row
Specifies the height of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the element left of it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the position of the bottom of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the left of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the right of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the position of the top of the containing block of the shape relative to the shape anchor. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the type of positioning used to place an element. Default is static. When the element is contained inside a group, this property must be absolute.
Specifies relative horizontal position data for objects in WordprocessingML documents. This modifies the mso-position-horizontal property. Default is text.
Specifies relative vertical position data for objects in WordprocessingML documents. This modifies the mso-position-vertical property. Default is text.
Specifies the position of the top of the containing block of the shape relative to the element above it in the flow of the page. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element. This property shall not be used for shapes anchored inline.
Specifies the width of the containing block of the shape. Default is 0. It is specified in CSS units or, for elements in a group, in the coordinate system of the parent element.
Specifies the distance from the bottom of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the left side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the right side of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies the distance from the top of the shape to the text that wraps around it. Default is 0 pt. Note that this property is different from the CSS margin property, which changes the origin of the shape to include the margin areas. This property does not change the origin.
Specifies whether the wrap coordinates were customized by the user. If the wrap coordinates are generated by an editor, this property is true; otherwise they were customized by a user. Default is false.
diff --git a/api/types/layout.MeasureWidth.html b/api/types/layout.MeasureWidth.html
index a649067303..792c18f4a5 100644
--- a/api/types/layout.MeasureWidth.html
+++ b/api/types/layout.MeasureWidth.html
@@ -33,7 +33,7 @@ between characters and the width of scaled text, which the document's formatting
diff --git a/api/types/shapes.ConnectorEnd.html b/api/types/shapes.ConnectorEnd.html
index f0fe120f08..4f172f1dad 100644
--- a/api/types/shapes.ConnectorEnd.html
+++ b/api/types/shapes.ConnectorEnd.html
@@ -38,7 +38,7 @@ bottom-left corner. On a shape without connection points, the connector ends at
diff --git a/api/types/shapes.CustomShapeGeometry.html b/api/types/shapes.CustomShapeGeometry.html
index 406a835167..d394cb6b4a 100644
--- a/api/types/shapes.CustomShapeGeometry.html
+++ b/api/types/shapes.CustomShapeGeometry.html
@@ -50,7 +50,7 @@ fill the shape. Later paths are drawn over earlier ones
diff --git a/api/types/shapes.CustomShapePath.html b/api/types/shapes.CustomShapePath.html
index 0de8ac5fcd..eac0ba1387 100644
--- a/api/types/shapes.CustomShapePath.html
+++ b/api/types/shapes.CustomShapePath.html
@@ -20,7 +20,7 @@ own, so paths can overlap without cutting holes in each other.
diff --git a/api/types/shapes.CustomShapePathFill.html b/api/types/shapes.CustomShapePathFill.html
index 3b9e3bad6b..4e9cbc6c61 100644
--- a/api/types/shapes.CustomShapePathFill.html
+++ b/api/types/shapes.CustomShapePathFill.html
@@ -19,7 +19,7 @@ fill made lighter or darker, as Word's preset shapes shade the top of a cube or
diff --git a/api/types/shapes.IShapeCanvasOptions.html b/api/types/shapes.IShapeCanvasOptions.html
index 5f027a5d98..0de8fb65ca 100644
--- a/api/types/shapes.IShapeCanvasOptions.html
+++ b/api/types/shapes.IShapeCanvasOptions.html
@@ -64,7 +64,7 @@ The shapes are not scaled.
diff --git a/api/types/shapes.IShapeConnectorOptions.html b/api/types/shapes.IShapeConnectorOptions.html
index f63275ed26..fd60fda210 100644
--- a/api/types/shapes.IShapeConnectorOptions.html
+++ b/api/types/shapes.IShapeConnectorOptions.html
@@ -23,7 +23,7 @@ or several connectors join the same two shapes, their ends are spread out along
@@ -64,21 +64,21 @@ or several connectors join the same two shapes, their ends are spread out along
shape, so Word doesn't move it when the connector moves
diff --git a/api/types/shapes.IShapeGroupChildOptions.html b/api/types/shapes.IShapeGroupChildOptions.html
index 3a151d8f76..1679bd168b 100644
--- a/api/types/shapes.IShapeGroupChildOptions.html
+++ b/api/types/shapes.IShapeGroupChildOptions.html
@@ -20,7 +20,7 @@ in pixels, unless a layout places it, and id names it
diff --git a/api/types/shapes.IShapeGroupOptions.html b/api/types/shapes.IShapeGroupOptions.html
index 7ef3866c87..5a20f9b730 100644
--- a/api/types/shapes.IShapeGroupOptions.html
+++ b/api/types/shapes.IShapeGroupOptions.html
@@ -50,7 +50,7 @@ the box around the children. A different size scales every shape in the group.
diff --git a/api/types/shapes.IShapeNestedGroupOptions.html b/api/types/shapes.IShapeNestedGroupOptions.html
index dce5769f68..867c8e8085 100644
--- a/api/types/shapes.IShapeNestedGroupOptions.html
+++ b/api/types/shapes.IShapeNestedGroupOptions.html
@@ -47,7 +47,7 @@ box around the children, and a different size scales every child
diff --git a/api/types/shapes.IShapeOptions.html b/api/types/shapes.IShapeOptions.html
index 77efc55c6c..45e0ae0832 100644
--- a/api/types/shapes.IShapeOptions.html
+++ b/api/types/shapes.IShapeOptions.html
@@ -23,7 +23,7 @@ or startAngle and endAngle for a "pie"
diff --git a/api/types/shapes.PresetShapeAdjustments.html b/api/types/shapes.PresetShapeAdjustments.html
index da490edb6b..571eeda58d 100644
--- a/api/types/shapes.PresetShapeAdjustments.html
+++ b/api/types/shapes.PresetShapeAdjustments.html
@@ -21,7 +21,7 @@ allows, so a value that is too large acts like the largest allowed value.
diff --git a/api/types/shapes.ShapeAdjustments.html b/api/types/shapes.ShapeAdjustments.html
index 6daf2e4701..c208cfa711 100644
--- a/api/types/shapes.ShapeAdjustments.html
+++ b/api/types/shapes.ShapeAdjustments.html
@@ -23,7 +23,7 @@ It is never for shapes without handles, which take no adjustments.<
diff --git a/api/types/shapes.ShapeFlowLayout.html b/api/types/shapes.ShapeFlowLayout.html
index 655dc828a9..6444760057 100644
--- a/api/types/shapes.ShapeFlowLayout.html
+++ b/api/types/shapes.ShapeFlowLayout.html
@@ -20,7 +20,7 @@ that connect to it, and the shapes on each level are ordered so connectors cross
@@ -52,26 +52,26 @@ with a lane goes in the band of that name, and shapes without one g
across the direction the flow runs in, each with a header at the start of the flow
diff --git a/api/types/shapes.ShapeHorizontalPosition.html b/api/types/shapes.ShapeHorizontalPosition.html
index 1eba9bf797..479e425269 100644
--- a/api/types/shapes.ShapeHorizontalPosition.html
+++ b/api/types/shapes.ShapeHorizontalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/types/shapes.ShapeLayout.html b/api/types/shapes.ShapeLayout.html
index 5eb055043e..4acdb573c4 100644
--- a/api/types/shapes.ShapeLayout.html
+++ b/api/types/shapes.ShapeLayout.html
@@ -20,7 +20,7 @@ layout, which is placed around them. Connectors are routed after the shapes are
diff --git a/api/types/shapes.ShapeSize.html b/api/types/shapes.ShapeSize.html
index 1c23ea086e..b05276cae2 100644
--- a/api/types/shapes.ShapeSize.html
+++ b/api/types/shapes.ShapeSize.html
@@ -19,7 +19,7 @@ percentage of the space between the page's margins, or of what floating.si
diff --git a/api/types/shapes.ShapeTextWarp.html b/api/types/shapes.ShapeTextWarp.html
index f1bbe24316..dcd1f00265 100644
--- a/api/types/shapes.ShapeTextWarp.html
+++ b/api/types/shapes.ShapeTextWarp.html
@@ -19,7 +19,7 @@ The ...Filled arches, circle and button spread the text over the wh
diff --git a/api/types/shapes.ShapeThemeColor.html b/api/types/shapes.ShapeThemeColor.html
index fdf732f1f8..4c921200d4 100644
--- a/api/types/shapes.ShapeThemeColor.html
+++ b/api/types/shapes.ShapeThemeColor.html
@@ -20,7 +20,7 @@ same as docx's ThemeColor, which text, borders and sha
diff --git a/api/types/shapes.ShapeTransformation.html b/api/types/shapes.ShapeTransformation.html
index e23d3a175e..0f8f71d5ee 100644
--- a/api/types/shapes.ShapeTransformation.html
+++ b/api/types/shapes.ShapeTransformation.html
@@ -30,7 +30,7 @@ between the margins for a floating shape, such as "100%"<
diff --git a/api/types/shapes.ShapeTreeLayout.html b/api/types/shapes.ShapeTreeLayout.html
index d5f9d2d96d..b37551c00c 100644
--- a/api/types/shapes.ShapeTreeLayout.html
+++ b/api/types/shapes.ShapeTreeLayout.html
@@ -20,7 +20,7 @@ children are placed side by side below their parent, which is centred over them.
diff --git a/api/types/shapes.ShapeVerticalPosition.html b/api/types/shapes.ShapeVerticalPosition.html
index 21e0d3e245..6c2e94c9c8 100644
--- a/api/types/shapes.ShapeVerticalPosition.html
+++ b/api/types/shapes.ShapeVerticalPosition.html
@@ -26,7 +26,7 @@ a base of the page, the space between its margins, or one of its margins
diff --git a/api/variables/index.CharacterSet.html b/api/variables/index.CharacterSet.html
index 76d3a892d7..1b0dbb8c87 100644
--- a/api/variables/index.CharacterSet.html
+++ b/api/variables/index.CharacterSet.html
@@ -60,7 +60,7 @@ Maps character set names to their hexadecimal identifiers.
diff --git a/api/variables/index.DocumentAttributeNamespaces.html b/api/variables/index.DocumentAttributeNamespaces.html
index 2cf51f5939..ad05afc0b8 100644
--- a/api/variables/index.DocumentAttributeNamespaces.html
+++ b/api/variables/index.DocumentAttributeNamespaces.html
@@ -94,7 +94,7 @@ in a document, including WordprocessingML, DrawingML, VML, and others.
When this value is set, the input specified via the user interface may be restricted to the number of lines per page and characters per line, with the consumer or producer translating this information based on the current font data to get the resulting line and character pitch values
diff --git a/api/variables/index.DropCapType.html b/api/variables/index.DropCapType.html
index d475c02d4f..e53b28ceeb 100644
--- a/api/variables/index.DropCapType.html
+++ b/api/variables/index.DropCapType.html
@@ -32,7 +32,7 @@ beginning of a paragraph. This enum defines how the drop cap should be positione
diff --git a/api/variables/index.EMPTY_OBJECT.html b/api/variables/index.EMPTY_OBJECT.html
index 8fd9b2f198..38b91a6e8b 100644
--- a/api/variables/index.EMPTY_OBJECT.html
+++ b/api/variables/index.EMPTY_OBJECT.html
@@ -20,7 +20,7 @@ has no children or attributes.
diff --git a/api/variables/index.EmphasisMarkType.html b/api/variables/index.EmphasisMarkType.html
index 63861b8c30..df46ebbe92 100644
--- a/api/variables/index.EmphasisMarkType.html
+++ b/api/variables/index.EmphasisMarkType.html
@@ -31,7 +31,7 @@ Emphasis marks are commonly used in East Asian typography.
Specifies that this header or footer shall appear on the first page in this section. The appearance of this header or footer is contingent on the setting of the titlePg element (§2.10.6).
diff --git a/api/variables/index.LevelFormat.html b/api/variables/index.LevelFormat.html
index 95ae38f622..17b1cf2062 100644
--- a/api/variables/index.LevelFormat.html
+++ b/api/variables/index.LevelFormat.html
@@ -281,7 +281,7 @@ decimal, roman numerals, letters, and various international formats.
diff --git a/api/variables/index.PageTextDirectionType.html b/api/variables/index.PageTextDirectionType.html
index b4fc836101..82a3d07f5a 100644
--- a/api/variables/index.PageTextDirectionType.html
+++ b/api/variables/index.PageTextDirectionType.html
@@ -28,7 +28,7 @@ vertically (top-to-bottom), commonly used for East Asian languages.
Top-to-bottom, right-to-left (vertical East Asian text flow)
diff --git a/api/variables/index.ShadingType.html b/api/variables/index.ShadingType.html
index 2a2c2cd09a..786548c906 100644
--- a/api/variables/index.ShadingType.html
+++ b/api/variables/index.ShadingType.html
@@ -103,7 +103,7 @@ color and the pattern color.
diff --git a/api/variables/index.TextEffect.html b/api/variables/index.TextEffect.html
index a60b5a4c45..e7c910a6c7 100644
--- a/api/variables/index.TextEffect.html
+++ b/api/variables/index.TextEffect.html
@@ -56,7 +56,7 @@ these effects are deprecated and may not be supported by all applications.
diff --git a/api/variables/index.VerticalAlign.html b/api/variables/index.VerticalAlign.html
index d962379769..60b5baa03b 100644
--- a/api/variables/index.VerticalAlign.html
+++ b/api/variables/index.VerticalAlign.html
@@ -32,7 +32,7 @@ backward-compatibility and will be removed in the next major release.
diff --git a/api/variables/index.VerticalAlignTable.html b/api/variables/index.VerticalAlignTable.html
index ff47626828..2f746ed93e 100644
--- a/api/variables/index.VerticalAlignTable.html
+++ b/api/variables/index.VerticalAlignTable.html
@@ -28,7 +28,7 @@ are valid according to ECMA-376 (§17.18.87 ST_VerticalJc within <w:tcP
diff --git a/api/variables/index.VerticalMergeType.html b/api/variables/index.VerticalMergeType.html
index 463cb3ed63..168a9a5ba6 100644
--- a/api/variables/index.VerticalMergeType.html
+++ b/api/variables/index.VerticalMergeType.html
@@ -29,7 +29,7 @@ This cell continues a vertical merge started by a cell above it.
This cell begins a new vertical merge region.
diff --git a/api/variables/index.bookmarkUniqueNumericId.html b/api/variables/index.bookmarkUniqueNumericId.html
index 367f75dd2a..8ab7ca4589 100644
--- a/api/variables/index.bookmarkUniqueNumericId.html
+++ b/api/variables/index.bookmarkUniqueNumericId.html
@@ -27,7 +27,7 @@ than a generator per instance.
diff --git a/api/variables/index.docPropertiesUniqueNumericId.html b/api/variables/index.docPropertiesUniqueNumericId.html
index 432d54bd50..1ea095db97 100644
--- a/api/variables/index.docPropertiesUniqueNumericId.html
+++ b/api/variables/index.docPropertiesUniqueNumericId.html
@@ -28,7 +28,7 @@ one counter rather than a generator per instance.
diff --git a/live-examples/lib/layout.iife.js b/live-examples/lib/layout.iife.js
index 71ac26f5b7..514eebe00c 100644
--- a/live-examples/lib/layout.iife.js
+++ b/live-examples/lib/layout.iife.js
@@ -2932,7 +2932,7 @@ var docxLayout = (function(exports) {
* rows break across pages between the lines of their cells, unless they are kept whole, and the table's header rows are
* repeated at the top of each page and column. The footnotes of each page's lines take room at its bottom, laid out in
* the section's columns in a section in columns, and one that doesn't fit below its reference continues at the bottom of
- * the next page. The endnotes follow the body.
+ * the next page, or pages, broken as the body is. The endnotes follow the body.
* It stops at the first thing it can't lay out yet, and the bookmarks after it aren't placed.
*
* @module
@@ -2977,24 +2977,24 @@ var docxLayout = (function(exports) {
*/
var linesThatFit = (lines, room, { keepLines, widowControl }, isFirstLine, roomBelow = () => 0) => {
const fits = lines.map((_, line) => sum(lines.slice(0, line + 1).map(({ height }) => height))).findIndex((end, line) => end + roomBelow(line + 1) > room + TOLERANCE);
- if (fits === -1) return {
+ return fits === -1 ? {
fits: lines.length,
count: lines.length
- };
- if (keepLines && isFirstLine) return {
+ } : {
fits,
- count: 0
- };
- if (!widowControl || lines.length < 2) return {
- fits,
- count: fits
- };
- const withoutWidow = lines.length - fits === 1 ? fits - 1 : fits;
- return {
- fits,
- count: isFirstLine && withoutWidow === 1 ? 0 : withoutWidow
+ count: linesKept(lines.length, fits, {
+ keepLines,
+ widowControl
+ }, isFirstLine)
};
};
+ /** How many of a paragraph's lines (`total`, from one of them) go on a page where some of them fit (`fits`) */
+ var linesKept = (total, fits, { keepLines, widowControl }, isFirstLine) => {
+ if (keepLines && isFirstLine) return 0;
+ if (!widowControl || total < 2) return fits;
+ const withoutWidow = total - fits === 1 ? fits - 1 : fits;
+ return isFirstLine && withoutWidow === 1 ? 0 : withoutWidow;
+ };
/**
* Lays out a document's pages, and finds the page each bookmark starts on.
*/
@@ -3187,6 +3187,7 @@ var docxLayout = (function(exports) {
const reserves = /* @__PURE__ */ new Map();
let continued;
let carried;
+ let held = [];
let spaceAfter = 0;
let sectionSpaceAfter = 0;
let sectionColumn = 0;
@@ -3219,6 +3220,7 @@ var docxLayout = (function(exports) {
filledEnd,
continued,
carried,
+ held,
spaceAfter,
sectionSpaceAfter
});
@@ -3231,7 +3233,7 @@ var docxLayout = (function(exports) {
* out again only moves them between the columns of the same page
*/
const restore = (state) => {
- ({pageCount, pageNumber, top, pageBottom, position, column, columnTop, placedInColumn, deepest, columnBroken, pageNotes, noteArea, notesInColumns, filledEnd, continued, carried, spaceAfter, sectionSpaceAfter} = state);
+ ({pageCount, pageNumber, top, pageBottom, position, column, columnTop, placedInColumn, deepest, columnBroken, pageNotes, noteArea, notesInColumns, filledEnd, continued, carried, held, spaceAfter, sectionSpaceAfter} = state);
bottom = columnsBottom();
noteArea = Math.max(noteArea, reserved());
};
@@ -3311,9 +3313,23 @@ var docxLayout = (function(exports) {
filledEnd = 0;
continued = carried;
carried = void 0;
- noteArea = Math.max(areaOf([]), reserved());
+ noteArea = Math.max(areaOf([], void 0, continued), reserved());
if (continued !== void 0 && current.columns.length > 1) throw new Unsupported("a footnote across pages in columns");
- if (noteArea > bottom - top + TOLERANCE) throw new Unsupported("a footnote across more than two pages");
+ if (continued !== void 0 && noteArea > bottom - top + TOLERANCE) {
+ if (isFirstOfSection) throw new Unsupported("a footnote continued across a section break onto a page of its own");
+ const { name, from } = continued;
+ const to = fillNote(name, from, (point) => areaOf([], void 0, {
+ name,
+ from,
+ to: point
+ }) <= bottom - top + TOLERANCE);
+ if (to.block === from.block && to.line === from.line) throw new Unsupported("a footnote line taller than a page");
+ carried = {
+ name,
+ from: to
+ };
+ startPage();
+ }
};
/** Moves to the top of the next column, or of the next page after the last column */
const nextColumn = () => {
@@ -3468,39 +3484,63 @@ var docxLayout = (function(exports) {
}
return tallest;
};
+ /** The blocks of a part of a footnote, each with the first of its lines or rows in the part, and the one after the last */
+ const piecesOf = ({ name, from = {
+ block: 0,
+ line: 0
+ }, to }) => footnotes.get(name).flatMap((block, index) => index < from.block || to !== void 0 && (index > to.block || index === to.block && to.line === 0) ? [] : [{
+ block,
+ start: index === from.block ? from.line : 0,
+ end: to !== void 0 && index === to.block ? to.line : void 0
+ }]);
/**
* The room footnotes take at the bottom of the page: the separator's line above them, the rest of a footnote
- * continued from the page before (`from`), their paragraphs, and the first lines of one continued on the next page
+ * continued from the page before (`from`), their blocks, and the first part of one continued on the next page
* (`split`), without the space before the first or after the last, as LibreOffice lays them out. In columns
* (`columns`), Word lays them out in the columns, one after the other from the first, with the separator at the top of
* each, and evens them out, as it evens out columns before a continuous section break: the room is the tallest, in the
* shortest height they fit in (`word-footnotes-in-columns.docx` N2, N4 and N9)
*/
- const areaOf = (notes, split, from = continued, columns = noteColumns()) => {
- var _stack$find, _columns$;
+ const areaOf = (notes, split, from, columns = noteColumns()) => {
+ var _pieces$find, _columns$;
if (notes.length === 0 && split === void 0 && from === void 0) return 0;
const separator = from === void 0 ? footnoteSeparator : footnoteContinuationSeparator;
- const stack = [
- ...separator,
- ...from === void 0 ? [] : [from.paragraph],
- ...notes.flatMap((name) => footnotes.get(name)),
- ...split === void 0 ? [] : [split.paragraph]
+ const pieces = [
+ ...separator.map((block) => ({
+ block,
+ start: 0,
+ end: void 0
+ })),
+ ...from === void 0 ? [] : piecesOf(from),
+ ...notes.flatMap((name) => piecesOf({ name })),
+ ...split === void 0 ? [] : piecesOf(split)
];
- const unsupported = (_stack$find = stack.find((block) => block.unsupported !== void 0)) === null || _stack$find === void 0 ? void 0 : _stack$find.unsupported;
+ const unsupported = (_pieces$find = pieces.find(({ block }) => block.unsupported !== void 0)) === null || _pieces$find === void 0 ? void 0 : _pieces$find.block.unsupported;
if (unsupported) throw new Unsupported(unsupported);
if (columns === null || columns === void 0 ? void 0 : columns.some((columnWidth) => columnWidth !== columns[0])) stopOnPage("footnotes in columns of different widths");
const width = (_columns$ = columns === null || columns === void 0 ? void 0 : columns[0]) !== null && _columns$ !== void 0 ? _columns$ : textWidth();
- const parts = stackParts(stack, width);
+ /** A piece's paragraph, with only its lines in the piece, or its table's rows as a line that doesn't break */
+ const measured = ({ block, start, end }, index) => {
+ var _pieces, _pieces2;
+ if (block.type === "table") return _objectSpread2(_objectSpread2({}, UNBROKEN), {}, { lines: [{
+ height: sum(rowHeights(sizedToPlace(block, width)).slice(start, end)),
+ markers: []
+ }] });
+ const paragraph = measureParagraph(block, width, (_pieces = pieces[index - 1]) === null || _pieces === void 0 ? void 0 : _pieces.block, (_pieces2 = pieces[index + 1]) === null || _pieces2 === void 0 ? void 0 : _pieces2.block);
+ return _objectSpread2(_objectSpread2({}, paragraph), {}, { lines: paragraph.lines.slice(start, end) });
+ };
+ const parts = pieces.map((piece, index) => {
+ const { lines, spaceBefore, spaceAfter: after } = measured(piece, index);
+ return {
+ height: linesHeight(lines),
+ before: from !== void 0 && index === separator.length ? 0 : spaceBefore,
+ after
+ };
+ });
if (columns !== void 0) {
var _separatorParts;
const separatorParts = parts.slice(0, separator.length);
- const paragraphs = stack.slice(separator.length).map((block, index) => {
- const measured = block.type === "table" ? _objectSpread2(_objectSpread2({}, UNBROKEN), {}, { lines: [{
- height: sum(rowHeights(fitted(block, width))),
- markers: []
- }] }) : measureParagraph(block, width, stack[separator.length + index - 1], stack[separator.length + index + 1]);
- return split !== void 0 && index === stack.length - separator.length - 1 ? _objectSpread2(_objectSpread2({}, measured), {}, { lines: split.lines }) : measured;
- });
+ const paragraphs = pieces.slice(separator.length).map((piece, index) => measured(piece, separator.length + index));
const separatorHeight = heightOf(separatorParts, false);
const separatorAfter = (_separatorParts = separatorParts[separatorParts.length - 1]) === null || _separatorParts === void 0 ? void 0 : _separatorParts.after;
const fill = (height) => fillNoteColumns(paragraphs, columns.length, separatorHeight, separatorAfter, height);
@@ -3513,18 +3553,11 @@ var docxLayout = (function(exports) {
}
return fill(tall);
}
- const continuedParts = parts.map((part, index) => {
- if (from !== void 0 && index === separator.length) return _objectSpread2(_objectSpread2({}, part), {}, {
- height: linesHeight(from.lines),
- before: 0
- });
- return split !== void 0 && index === stack.length - 1 ? _objectSpread2(_objectSpread2({}, part), {}, { height: linesHeight(split.lines) }) : part;
- });
- return heightOf(continuedParts, false);
+ return heightOf(parts, false);
};
const notesIn = (markers) => markers.filter((name) => footnotes.has(name));
/** The room footnotes take at the bottom of the page, or the room kept for them there, when that is more */
- const pageArea = (notes, split) => Math.max(reserved(), areaOf(notes, split));
+ const pageArea = (notes, split) => Math.max(reserved(), areaOf(notes, split, continued));
/**
* The room footnotes take below those on the page already. It stops at one referred to from another section than
* the page's first, when that is in columns, which Word hasn't been seen to lay out
@@ -3556,37 +3589,108 @@ var docxLayout = (function(exports) {
* known
*/
const checkReserve = () => {
- if (reserved() > areaOf(pageNotes) + TOLERANCE) stopOnPage("a footnote in columns that moves its reference to the next page");
+ if (reserved() > areaOf(pageNotes, void 0, continued) + TOLERANCE) stopOnPage("a footnote in columns that moves its reference to the next page");
};
/**
- * The paragraph of a footnote that can continue on the next page with two of its lines or more on each: a footnote of
- * one paragraph of 4 lines or more, not kept together
+ * Whether a table row could break across pages between the lines of its cells: one not kept whole, with more than a
+ * line in a cell
*/
- const continuable = (name) => {
- const [first, ...rest] = footnotes.get(name);
- return rest.length === 0 && (first === null || first === void 0 ? void 0 : first.type) === "paragraph" && first.format.keepLines !== true && linesOf(first, noteWidth()).length >= 4 ? first : void 0;
+ const canSplit = (row) => {
+ var _row$height;
+ return !row.cantSplit && ((_row$height = row.height) === null || _row$height === void 0 ? void 0 : _row$height.rule) !== "exact" && row.cells.some(({ blocks: stack, width }) => stack.length > 1 || stack.some((block) => block.type === "table" || linesOf(block, width).length > 1));
};
/**
- * The least room the footnotes of lines take below those on the page: all of those of the lines before the last
- * (`before`), and of the last line's (`last`), the last continued on the next page after two of its lines, when it can be
+ * Where the least of a footnote that goes on a page with its reference ends, when the rest of it can continue on the
+ * next page, as Word continues it: the first lines of its first paragraph that can't be left alone at the bottom of a
+ * page, 2 with widow control, or all of a paragraph of 3 lines or fewer, or 1 without it, or the first row of a table
+ * (`word-probes.docx` U2a to U2h). Undefined when that is all of it. In columns, where how Word continues a footnote
+ * hasn't been seen, a line that fits with it stops when its footnote is placed
*/
- const leastNoteRoom = (before, last) => {
- const room = moreNoteRoom([...before, ...last]);
- const paragraph = last.length === 0 ? void 0 : continuable(last[last.length - 1]);
- return paragraph === void 0 ? room : pageArea([
- ...pageNotes,
- ...before,
- ...last.slice(0, -1)
- ], {
- paragraph,
- lines: linesOf(paragraph, noteWidth()).slice(0, 2)
- }) - noteArea;
+ const leastPart = (name) => {
+ const note = footnotes.get(name);
+ const [first] = note;
+ if (first === void 0) return;
+ if (first.type === "table") {
+ const { rows } = fitted(first, noteWidth());
+ const firstRows = rows.slice(0, 1).some(canSplit) ? 0 : 1;
+ return note.length === 1 && firstRows >= rows.length ? void 0 : {
+ block: 0,
+ line: firstRows
+ };
+ }
+ const { lines, widowControl } = measureParagraph(first, noteWidth());
+ const count = !widowControl ? 1 : lines.length <= 3 ? lines.length : 2;
+ return note.length === 1 && count === lines.length ? void 0 : {
+ block: 0,
+ line: count
+ };
};
/**
- * Puts the footnotes of the lines placed at the bottom of the page: all of them, or where they don't fit, as many
- * lines of the last as fit, with the rest of it continued at the bottom of the next page, as Word and LibreOffice
- * continue it. The footnote takes the rest of the page then, so what follows goes on the next. How Word continues
- * one in columns hasn't been seen.
+ * The room footnotes take at the bottom of a page, below the rest of one continued from the page before (`from`),
+ * with the last continued on the next page after the least of it that can go on this one, when it can be
+ */
+ const leastAreaOf = (notes, from, columns = noteColumns()) => {
+ const name = notes[notes.length - 1];
+ const to = name === void 0 ? void 0 : leastPart(name);
+ return to === void 0 ? areaOf(notes, void 0, from, columns) : areaOf(notes.slice(0, -1), {
+ name,
+ to
+ }, from, columns);
+ };
+ /**
+ * The least room footnotes take below those on the page: all of them, but the last only as far as it has to go on the
+ * page, when it can continue on the next
+ */
+ const leastNoteRoom = (notes) => {
+ const room = moreNoteRoom(notes);
+ return notes.length === 0 ? room : Math.max(reserved(), leastAreaOf([...pageNotes, ...notes], continued)) - noteArea;
+ };
+ /**
+ * Where the part of a footnote on a page ends, from where it starts (`from`), when not all of it fits (`fits`, up to
+ * a point): after as many of its lines and table rows as fit, less those its paragraphs' widow and orphan control
+ * hold back, as the body's are, so it breaks between its paragraphs and rows, or in a paragraph with 2 lines or more
+ * on each page (`word-probes.docx` U2a to U2h). Whether Word keeps a footnote's paragraph together or with the next
+ * across pages, or breaks a row of more than a line or repeats header rows in one, isn't known, so it stops there.
+ */
+ const fillNote = (name, from, fits) => {
+ const note = footnotes.get(name);
+ const width = noteWidth();
+ const { block: index, line } = note.flatMap((part, at) => Array.from({ length: part.type === "table" ? part.rows.length : linesOf(part, width).length }, (_, unit) => ({
+ block: at,
+ line: unit
+ }))).filter((point) => point.block > from.block || point.block === from.block && point.line >= from.line).find((point) => !fits({
+ block: point.block,
+ line: point.line + 1
+ }));
+ const block = note[index];
+ const previous = note[index - 1];
+ /** The point the part ends at, before a line or row of the block */
+ const breakBefore = (at) => {
+ if (at === 0 && index > from.block && previous.type === "paragraph" && previous.format.keepNext === true) throw new Unsupported("a paragraph kept together or with the next in a footnote across pages");
+ return {
+ block: index,
+ line: at
+ };
+ };
+ if (block.type === "table") {
+ if (canSplit(fitted(block, width).rows[line])) throw new Unsupported("a table row of more than one line in a footnote across pages");
+ if (line > 0 && block.rows[0].header) throw new Unsupported("a table's header rows in a footnote across pages");
+ return breakBefore(line);
+ }
+ const begin = index === from.block ? from.line : 0;
+ const { lines, widowControl, keepLines } = measureParagraph(block, width);
+ const count = linesKept(lines.length - begin, line - begin, {
+ keepLines: false,
+ widowControl
+ }, begin === 0);
+ if (keepLines && count > 0) throw new Unsupported("a paragraph kept together or with the next in a footnote across pages");
+ return breakBefore(begin + count);
+ };
+ /**
+ * Puts the footnotes of the lines placed at the bottom of the page: all of them, or where they don't fit, the last as
+ * far as it fits below the others, as the body's blocks fill a page, with the rest of it continued at the bottom of the
+ * next page, as Word continues it. The footnote takes the rest of the page then, so what follows goes on the next. How
+ * Word continues one in columns hasn't been seen.
*/
const placeNotes = (notes) => {
if (notes.length === 0 || position <= linesBottom(moreNoteRoom(notes)) + TOLERANCE) {
@@ -3595,43 +3699,42 @@ var docxLayout = (function(exports) {
}
if (section().columns.length > 1) stopOnPage("a footnote across pages in columns");
const whole = [...pageNotes, ...notes.slice(0, -1)];
- const paragraph = continuable(notes[notes.length - 1]);
- const lines = linesOf(paragraph, noteWidth());
- const count = lines.findIndex((_, line) => areaOf(whole, {
- paragraph,
- lines: lines.slice(0, line + 1)
- }) > bottom - position + TOLERANCE);
- if (count > lines.length - 2) throw new Unsupported("a footnote across pages with a line on its own");
- pageNotes = [...whole, notes[notes.length - 1]];
+ const name = notes[notes.length - 1];
+ const to = fillNote(name, {
+ block: 0,
+ line: 0
+ }, (point) => areaOf(whole, {
+ name,
+ to: point
+ }, continued) <= bottom - position + TOLERANCE);
+ pageNotes = [...whole, name];
noteArea = bottom - position;
carried = {
- paragraph,
- lines: lines.slice(count)
+ name,
+ from: to
};
};
/**
- * Stops where a line fits on the page without its footnotes (`notes`), which don't fit below it (`below`, less those
- * of the lines before, `before`), and Word might put it on the page with only a part of one, which isn't followed: a
- * line of one on its own, one of several paragraphs, or one continued with others after it
+ * Stops where a line in columns fits without its footnotes (`notes`), which don't fit below it (`below`, less those of
+ * the lines before, `before`), and part of one would: how Word continues a footnote in columns hasn't been seen. When
+ * none of it would, the line goes on in the next column or on the next page with it
*/
const stopAtPartOfFootnote = (before, notes, below) => {
- var _footnotes$get;
const index = notes.findIndex((_, note) => noteCost(moreNoteRoom([...before, ...notes.slice(0, note + 1)])) > below + TOLERANCE);
- const [first, ...rest] = (_footnotes$get = footnotes.get(notes[index])) !== null && _footnotes$get !== void 0 ? _footnotes$get : [];
- if (first === void 0) return;
- if (first.type === "table") throw new Unsupported("a footnote of several paragraphs across pages");
+ const name = notes[index];
+ if (name === void 0 || footnotes.get(name).length === 0) return;
const firstLine = {
- paragraph: first,
- lines: linesOf(first, noteWidth()).slice(0, 1)
+ name,
+ to: {
+ block: 0,
+ line: 1
+ }
};
if (noteCost(pageArea([
...pageNotes,
...before,
...notes.slice(0, index)
- ], firstLine) - noteArea) > below + TOLERANCE) return;
- if (section().columns.length > 1) stopOnPage("a footnote across pages in columns");
- if (rest.length > 0) throw new Unsupported("a footnote of several paragraphs across pages");
- throw new Unsupported(index < notes.length - 1 || first.format.keepLines === true ? "a footnote across pages" : "a footnote across pages with a line on its own");
+ ], firstLine) - noteArea) <= below + TOLERANCE) stopOnPage("a footnote across pages in columns");
};
/** Whether a footnote could continue on the next page: one of more than a line */
const canBreak = (name) => {
@@ -3658,9 +3761,10 @@ var docxLayout = (function(exports) {
* counts the lines left for the next column as they are broken in this one, as Word counts them, so the rest can still
* go on one line of a wider column, where LibreOffice moves more lines on (`word-column-widths.docx` R1 to R4). The
* space before a paragraph at the top of a page is left out, unless it is the first of the document or of its
- * section.
+ * section. Its footnotes go at the bottom of the page below its lines, unless they are held back to go below the
+ * lines of the next paragraph (`holdNotes`).
*/
- const placeParagraph = (block, paragraph, keptWithPrevious) => {
+ const placeParagraph = (block, paragraph, keptWithPrevious, holdNotes) => {
if (paragraph.pageBreakBefore && (placedInColumn || column > 0)) startPage();
const { columns } = section();
/** Whether its lines up to its first break are taller than a column, at a column's width */
@@ -3693,22 +3797,23 @@ var docxLayout = (function(exports) {
const remaining = linesToBreak(lines, index);
const isFirstLine = index === 0;
const space = isFirstLine ? spaceAbove() : 0;
- const notesOf = (upTo) => notesIn(remaining.slice(0, upTo).flatMap(({ markers }) => markers));
+ const heldNotes = held;
+ const notesOf = (upTo) => [...heldNotes, ...notesIn(remaining.slice(0, upTo).flatMap(({ markers }) => markers))];
const room = linesBottom() - position - space;
- const { fits, count: kept } = linesThatFit(remaining, room, paragraph, isFirstLine, (upTo) => noteCost(leastNoteRoom(notesOf(upTo - 1), notesIn(remaining[upTo - 1].markers))));
- if (fits === 0 && !placedInColumn && (notesOf(1).length > 0 || continued !== void 0)) {
- stopIfBalancing();
- throw new Unsupported(notesOf(1).length > 0 ? "a footnote across pages" : "a footnote across more than two pages");
+ const { fits, count: kept } = linesThatFit(remaining, room, paragraph, isFirstLine, (upTo) => noteCost(leastNoteRoom(notesOf(upTo))));
+ if (section().columns.length > 1 && linesThatFit(remaining, room, paragraph, isFirstLine).fits > fits) {
+ const above = room - linesHeight(remaining.slice(0, fits));
+ stopAtPartOfFootnote(notesOf(fits), notesIn(remaining[fits].markers), above - remaining[fits].height);
}
- const above = room - linesHeight(remaining.slice(0, fits));
- const splits = fits > 0 && noteCost(moreNoteRoom(notesOf(fits))) > above + TOLERANCE;
- if (linesThatFit(remaining, room, paragraph, isFirstLine).fits > fits && !splits) stopAtPartOfFootnote(notesOf(fits), notesIn(remaining[fits].markers), above - remaining[fits].height);
let count = kept;
- if (count === 0 && !placedInColumn) {
+ if (count === 0 && !placedInColumn && continued === void 0) {
+ if (fits === 0 && notesOf(1).length > 0) {
+ stopIfBalancing();
+ throw new Unsupported("a line and its footnote taller than a page");
+ }
if (linesThatFit(remaining, pageBottom - noteArea - position - space, paragraph, isFirstLine).count > 0) stopIfBalancing();
count = Math.max(1, fits);
}
- if (count < fits && splits) throw new Unsupported("a footnote across pages");
if (count > 0) {
position += space;
for (const line of remaining.slice(0, count)) {
@@ -3716,7 +3821,12 @@ var docxLayout = (function(exports) {
position += line.height;
}
spaceAfter = 0;
- placeNotes(notesOf(count));
+ const notes = notesOf(count);
+ if (holdNotes && index + count === lines.length) held = notes;
+ else {
+ held = [];
+ placeNotes(notes);
+ }
placedInColumn = true;
index += count;
}
@@ -3793,7 +3903,7 @@ var docxLayout = (function(exports) {
if (row.cells.some((cell) => cell.blocks.some(({ type }) => type === "table"))) throw new Unsupported("a table in a table row across pages");
}
const fitsWhole = !isFirstPart || position + height + breakBorder <= linesBottom() + TOLERANCE;
- if ((!placesLines || !fitsWhole) && !placedInColumn) {
+ if ((!placesLines || !fitsWhole) && !placedInColumn && continued === void 0) {
stopIfBalancing();
throw new Unsupported("a table row taller than a page");
}
@@ -3835,15 +3945,15 @@ var docxLayout = (function(exports) {
const markersIn = (row) => row.cells.flatMap((cell) => cell.blocks.flatMap(markersOf));
const bottomBorder = (_table$rows$borderBot = (_table$rows = table.rows[table.rows.length - 1]) === null || _table$rows === void 0 ? void 0 : _table$rows.borderBottom) !== null && _table$rows$borderBot !== void 0 ? _table$rows$borderBot : 0;
for (const [index, row] of table.rows.entries()) {
- var _row$height;
+ var _row$height2;
const breakBorder = index < table.rows.length - 1 ? bottomBorder : 0;
const height = heights[index];
const roomNeeded = height + breakBorder;
const markers = markersIn(row);
const notes = notesIn(markers);
if (!rowFits(roomNeeded, notes) && position + roomNeeded <= linesBottom() + TOLERANCE && notes.some(canBreak)) throw new Unsupported("a footnote in a table row across pages");
- const keptWhole = row.cantSplit || ((_row$height = row.height) === null || _row$height === void 0 ? void 0 : _row$height.rule) === "exact";
- if (!rowFits(roomNeeded, notes) && keptWhole && placedInColumn) startTablePage(index);
+ const keptWhole = row.cantSplit || ((_row$height2 = row.height) === null || _row$height2 === void 0 ? void 0 : _row$height2.rule) === "exact";
+ while (!rowFits(roomNeeded, notes) && keptWhole && (placedInColumn || continued !== void 0)) startTablePage(index);
for (const { last, height: needed } of merges.filter(({ first }) => first === index)) {
const reached = heights.slice(index, last + 1).findIndex((_, offset) => sum(heights.slice(index, index + offset + 1)) >= needed - TOLERANCE);
const rows = table.rows.slice(index, reached === -1 ? last + 1 : index + reached + 1);
@@ -3866,7 +3976,9 @@ var docxLayout = (function(exports) {
};
/**
* The room the paragraphs kept with the next one, from this one, need on the page: all of them, and the start of
- * the block they are kept with, from where the next line would go.
+ * the block they are kept with, from where the next line would go. With the footnotes of all their lines (`notes`)
+ * and of the paragraphs kept with the next alone (`kept`), and what they are kept with: nothing in their section, all
+ * of a paragraph's lines, or the first lines of a longer one, or a table's first row.
*/
const keptHeight = (index, width) => {
var _kept$spaceAfter, _kept;
@@ -3885,7 +3997,9 @@ var docxLayout = (function(exports) {
const anchor = blocks[index + chain].block;
if (anchor.type === "paragraph" && anchor.sectionBreak) return {
height: keptLines,
- notes: keptNotes
+ notes: keptNotes,
+ kept: keptNotes,
+ keptWith: "nothing"
};
if (anchor.type === "table") {
var _rowHeights$;
@@ -3893,7 +4007,9 @@ var docxLayout = (function(exports) {
const sized = anchor.unsupported ? anchor : fitted(anchor, width);
return {
height: keptLines + lastAfter + (sized.unsupported ? 0 : (_rowHeights$ = rowHeights(sized)[0]) !== null && _rowHeights$ !== void 0 ? _rowHeights$ : 0),
- notes: [...keptNotes, ...notesIn(firstRow ? firstRow.cells.flatMap((cell) => cell.blocks.flatMap(markersOf)) : [])]
+ notes: [...keptNotes, ...notesIn(firstRow ? firstRow.cells.flatMap((cell) => cell.blocks.flatMap(markersOf)) : [])],
+ kept: keptNotes,
+ keptWith: "part"
};
}
const next = measured(index + chain);
@@ -3901,7 +4017,9 @@ var docxLayout = (function(exports) {
const nextLines = next.lines.slice(0, firstLines);
return {
height: keptLines + between(lastAfter, next.spaceBefore) + linesHeight(nextLines),
- notes: [...keptNotes, ...notesIn(nextLines.flatMap(({ markers }) => markers))]
+ notes: [...keptNotes, ...notesIn(nextLines.flatMap(({ markers }) => markers))],
+ kept: keptNotes,
+ keptWith: chain === 0 ? "nothing" : firstLines === next.lines.length && !next.pageBreakBefore ? "whole" : "part"
};
};
/**
@@ -3931,18 +4049,35 @@ var docxLayout = (function(exports) {
return;
}
const paragraph = measureParagraph(block, width, (_blocks5 = blocks[index - 1]) === null || _blocks5 === void 0 ? void 0 : _blocks5.block, (_blocks6 = blocks[index + 1]) === null || _blocks6 === void 0 ? void 0 : _blocks6.block);
- if (paragraph.keepNext && placedInColumn) {
- const { height: needed, notes } = keptHeight(index, width);
- const fitsHere = position + needed <= linesBottom(moreNoteRoom(notes)) + TOLERANCE;
- if (!fitsHere && position + needed <= linesBottom(leastNoteRoom(notes.slice(0, -1), notes.slice(-1))) + TOLERANCE) throw new Unsupported("a footnote across pages");
- const { columns } = section();
- const fitsBelow = (from, area, below) => from + keptHeight(index, below).height <= Math.min(bottom, pageBottom - area) + TOLERANCE;
- if (!fitsHere && column + 1 < columns.length && fitsBelow(columnTop, noteArea + moreNoteRoom(notes), columns[column + 1])) nextColumn();
- else if (!fitsHere && fitsBelow(top, areaOf(notes, void 0, carried, columns.length > 1 ? columns : void 0), columns[0])) startPage();
+ let holdNotes = false;
+ if (paragraph.keepNext) {
+ /**
+ * What is kept together, from where the next line goes, broken into lines at the width of the column it goes in,
+ * with the footnotes held back from a paragraph kept with this one, which go below these lines too (`all`), and
+ * whether it fits with its footnotes taking some room
+ */
+ const keptHere = () => {
+ const measured = keptHeight(index, section().columns[column]);
+ return _objectSpread2(_objectSpread2({}, measured), {}, {
+ all: [...held, ...measured.notes],
+ fitsWith: (noteRoom) => position + measured.height <= linesBottom(noteRoom) + TOLERANCE
+ });
+ };
+ if (placedInColumn) {
+ const here = keptHere();
+ const fitsHere = here.fitsWith(leastNoteRoom(here.all));
+ const { columns } = section();
+ const fitsBelow = (from, area, below) => from + keptHeight(index, below).height <= Math.min(bottom, pageBottom - area) + TOLERANCE;
+ if (!fitsHere && column + 1 < columns.length && fitsBelow(columnTop, noteArea + moreNoteRoom(here.notes), columns[column + 1])) nextColumn();
+ else if (!fitsHere && fitsBelow(top, leastAreaOf(here.notes, carried, columns.length > 1 ? columns : void 0), columns[0])) startPage();
+ }
+ const { notes, kept, keptWith, all, fitsWith } = keptHere();
+ holdNotes = keptWith !== "nothing" && [...held, ...kept].length > 0 && notes.length === kept.length && fitsWith(leastNoteRoom(all)) && !fitsWith(moreNoteRoom(all));
+ if (holdNotes && keptWith === "part") throw new Unsupported("a footnote continued below a paragraph kept with the next");
}
const previous = blocks[index - 1];
const keptWithPrevious = (previous === null || previous === void 0 ? void 0 : previous.section) === blocks[index].section && previous.block.type === "paragraph" && previous.block.format.keepNext === true;
- placeParagraph(block, paragraph, keptWithPrevious);
+ placeParagraph(block, paragraph, keptWithPrevious, holdNotes);
sectionSpaceAfter = void 0;
};
/** Lays out the blocks from one (`from`) to the one before another (`to`), starting their sections */
diff --git a/usage/layout.md b/usage/layout.md
index 0b14fe5801..5db401cbfe 100644
--- a/usage/layout.md
+++ b/usage/layout.md
@@ -71,7 +71,7 @@ The pages are laid out with the widths and heights of the characters of the font
- spacing before and after paragraphs, line spacing, indents and tab stops. A line in one font is as tall as Word makes it, to a fraction of a twip (a twentieth of a point): 268.55 twips for Calibri 11. A line in several fonts is as tall as the tallest of them. Contextual spacing (`contextualSpacing`) leaves out only its paragraph's own share of the space between it and a paragraph of the same style, as Word does: all of its space after, or as much of its space before as is more than the space after the paragraph above it
- keeping a paragraph with the next, keeping its lines together, widow and orphan control, and page breaks
- numbered and bulleted lists
-- footnotes, which take room at the bottom of the page their reference is on, and continue at the bottom of the next page when they don't fit, and endnotes, which follow the text. In columns, the footnotes of a page are laid out in the columns too, as Word lays them out: one after the other from the first column, evened out, and every column ends above them
+- footnotes, which take room at the bottom of the page their reference is on, and endnotes, which follow the text. A footnote that doesn't fit below its reference continues at the bottom of the next page, as Word continues it: it breaks between its paragraphs and table rows, and inside a paragraph keeping to its widow and orphan control, and its reference's line moves to the next page with it when too little of it would stay. One longer than a page fills the pages after it, and the text goes on above its end. In columns, the footnotes of a page are laid out in the columns too, as Word lays them out: one after the other from the first column, evened out, and every column ends above them
- pictures in the line
- tables, with their columns' widths (`columnWidths`, or their cells' widths), their rows' heights, cell margins and borders. The columns of a table given no widths are sized to their text, as Word sizes them: each as wide as its longest line, or narrower when they don't all fit, but never narrower than its longest word, and a column whose cells give it a width keeps it. In a table whose cells all have widths, a column with a word longer than its cells give it is widened to fit the word, and the other columns are narrowed to make room, as Word does, unless the table's layout is fixed. Rows break across pages between the lines of their cells, as Word breaks them, keeping to widow and orphan control and lines kept together, and with room on the page for the space after a cell's paragraph that ends there. They move to the next page whole when a cell would have none of its lines on the page, when they are kept whole (`cantSplit`), and when the page hasn't room for the height they are set to. Where a table breaks across pages, Word draws its bottom border below the last of it on the page, which takes room there too. Header rows are repeated at the top of each page and column a table is on
- sections, with their page sizes, margins, columns, headers and footers, how they start, and their page numbering, such as roman numerals. Each column's lines are broken at its own width, so a paragraph that goes on into a column of another width is broken again there, as Word breaks it. Widow control counts the lines left for the next column as they are broken in the column before, as Word counts them, and a table sized to its text keeps its columns' widths in a wider column. Columns before a continuous section break are evened out, as Word evens them out, unless a column break is in them, and the next section starts below the longest. A section that starts in the next column (`SectionType.NEXT_COLUMN`) starts in the next column of the page when the section before has as many columns and one is left, as Word starts it, and on a new page otherwise. A paragraph kept together that is taller than a column goes down only the first column of each page, as Word lays it out, from the top of a new page unless it is at the top of this one, and what follows it goes on below it. A section that ends with a table has a line below it for the empty paragraph that ends the section, as Word has it
@@ -82,7 +82,7 @@ It stops at the first thing it can't lay out yet, and the page numbers of the he
- a picture or shape that text wraps around, a text box, or a text frame
- an equation
-- a footnote that doesn't fit below its reference, when it has several paragraphs or a table, would leave only one of its lines on either page, is too long for the next page too, or is referred to from a line that widow control, keeping lines together or keeping with the next paragraph could hold back
+- a footnote that continues on the next page where it would break in a paragraph kept together or with the next, or in a table with header rows or a row of more than one line; one that continues from a paragraph kept with a longer one or a table, or onto a page of its own after a section break; and a footnote line, or a line and the start of its footnote, taller than a page
- a paragraph kept together that is taller than a column, in columns of different widths, and a paragraph kept with the next before a paragraph kept together that is taller than a column, when that one would move to a new page without it
- a table sized to its text that goes on into a narrower column
- a section that starts in the next column when its columns are of other widths than those of the section before, or when it starts before the last of 3 or more columns and a continuous section break follows it on the same page
The unique identifier for this abstract numbering definition.