diff --git a/api/classes/charts.ChartDataPatch.html b/api/classes/charts.ChartDataPatch.html
index c391f72c79..1e406d7676 100644
--- a/api/classes/charts.ChartDataPatch.html
+++ b/api/classes/charts.ChartDataPatch.html
@@ -45,7 +45,7 @@ placeholder in the document's text is left as it is.
diff --git a/api/classes/index.AbstractNumbering.html b/api/classes/index.AbstractNumbering.html
index 04bfd40db1..2da44f0775 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 43164e5512..b6fdaeccf7 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 530b30a339..836db57db0 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 aa816ceed6..963fe71a43 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 7edac4b756..2d47c7cd13 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 9267dc580e..74b3f08f72 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 4abee2bf5c..21f4340987 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 d798bd069b..6cf52f86b4 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 c61e39c64c..f5848f5f27 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 c1370418b3..585a1cd865 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 8751389050..a16da8b4a0 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 d790476bc2..7340832a84 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 dadd186503..fbac26d106 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 f92b85b19f..654b71118a 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 7797aee236..838e3263cb 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 e281c0f7ff..f7e590fd16 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 c6db93f13f..192e02e652 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 2232c59350..9a26604098 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 98bc087b8d..09f55f423b 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 7ff61a23d4..b08a991ffe 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 726d350e47..abaa78d0f1 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 2abf608e5e..c86aa7e37c 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 9937ef1d51..8487d32cb7 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 587b9cd701..b894621862 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 de4832698c..7a6ba3f151 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 4ec91e0884..f45b279726 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 bf124e5c22..224b4fb7d3 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 e5e84186d8..5f23880511 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 14e26c2df2..193446b59c 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 fa73dd2e90..9bf35b07db 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 79cd1ef05f..4c4d414bfa 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 29dcda810d..dc4004e61f 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 b0b7f46911..07b08786f7 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 f1ac610415..f8d4fa6215 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 1f69594c1e..8502d9fb1f 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 931c6aa59f..b5b3838d3f 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 c80aa42027..bb98974b9c 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 2fafa3e4f7..39b91228cc 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 ac96fb377a..74bd348f89 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 4d4a542452..98e1246cf5 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 bf72c0700d..8e1fc93f0e 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 a0c50fde21..dfa6876141 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 49a77ce3d0..9aec0579ee 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 f26ce5979d..9d26e95be7 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 0f98446f7b..29a6085536 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 426e4b5dd9..63328893fc 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 231c1704d1..f542fd0243 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 977d44af90..e46382daa5 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 8851717b42..79642efbf3 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 f52a9dd125..acad306da4 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 6e66e2ab0f..f9f157457b 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 df01ad3db5..3c6b2e30a3 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.PageTextDirection.html b/api/classes/index.PageTextDirection.html
index 9fcf3c06f2..6a2c9cfb0a 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 8ea6c8b629..cccdebcc89 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 ad5a247c0b..09da264d94 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 5cac121cba..6371f35fcb 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 2c1b1a81ca..191af2c49c 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 af9fb73d43..f2e03b94b7 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 7b3ee29e6e..6957e2ffe0 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 c8129e1492..ad3cad4367 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 fdfa876a9f..1783f4fbe7 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 d2bcd3d013..ae087d6709 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 a94edf7dd7..cd38520415 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 9bda2759cd..d8dc10c722 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 6dfb90b322..67d9844ec5 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 c1c61a44d9..38e34a4917 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 091a0f2aef..d2cdf1ad02 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 ec739ceb29..4098a07f23 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 6940079cad..d8b5563da4 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 7d07adc44e..e327471365 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.TableRow.html b/api/classes/index.TableRow.html
index ac40558f39..b637c55d26 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 70b670dd79..df1dbea9cc 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 209285daee..3d111d9d32 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 1c28cdde8e..30c45107f0 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 501e1ccc9f..a4fd180040 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 1c45d35080..a0a5b77bb5 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 7093162b23..64941a1498 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 2119ddfeed..910451d269 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 4592ae3ceb..d78c590f79 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 b6631c74a8..fd9bc8a90f 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 aee740d684..9785fa1fc1 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 41746be02f..07161c0037 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 24267ce3ae..c9dce50c86 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 e5bdf96b02..81962f1a49 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 e970c5f223..4a4b84a905 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 95f07f85f5..6ed2a1e88c 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 b3fef641d7..f1c4013608 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 7a0b40eb09..a5d449a2f8 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 2d02c21333..215c9db6b1 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 d094b5d42e..f56cd4c259 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 5289fc0f1f..9c13745efa 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 5cc97c47cd..d062dd3e03 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 8043f8ac6e..51ac2bf2b8 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 5286769465..b0a32268c9 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 93da338582..70d987f64b 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 8061bb5c77..3955538db4 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 0ec16e86a6..b0d0dd608a 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 b1669877aa..bae3ae7646 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 d3767c0ecd..a03cdd88c8 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 aceac8e85f..c2cae6797c 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 46efe5a725..b7a920cb6e 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 8e966511a7..e3f76ed557 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 41bcb18ce2..7bb3a1d8c1 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 52b70cd470..58eef3b94c 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.fillPartPageNumbers.html b/api/functions/index.fillPartPageNumbers.html
index 01e55cc2c8..98f67f2417 100644
--- a/api/functions/index.fillPartPageNumbers.html
+++ b/api/functions/index.fillPartPageNumbers.html
@@ -35,7 +35,7 @@ are left as they are
diff --git a/api/functions/index.fillSequenceNumbers.html b/api/functions/index.fillSequenceNumbers.html
index e7b44dd2da..ffdbf1f359 100644
--- a/api/functions/index.fillSequenceNumbers.html
+++ b/api/functions/index.fillSequenceNumbers.html
@@ -27,7 +27,7 @@ tables of contents are filled in from its headings, as Word leaves a heading's S
diff --git a/api/functions/index.hpsMeasureValue.html b/api/functions/index.hpsMeasureValue.html
index 81560a1b96..6868d4163e 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 42a40b66c9..3d83bbaa37 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 b7adaa03bb..285fbd4634 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.estimatePageNumbersWith.html b/api/functions/layout.estimatePageNumbersWith.html
index 2b8536e116..fce9be3631 100644
--- a/api/functions/layout.estimatePageNumbersWith.html
+++ b/api/functions/layout.estimatePageNumbersWith.html
@@ -32,7 +32,7 @@ options say. Give what it returns to a document as its pageNumbers,
diff --git a/api/functions/layout.layoutDocument.html b/api/functions/layout.layoutDocument.html
index bf11560294..12a843bdd3 100644
--- a/api/functions/layout.layoutDocument.html
+++ b/api/functions/layout.layoutDocument.html
@@ -37,7 +37,7 @@ text box, it stops, and gives the pages up to there, with why in stoppedAt
diff --git a/api/functions/layout.measureWithPretext.html b/api/functions/layout.measureWithPretext.html
index 94e053723c..8dd3aac77a 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 ef52c78d24..d69ae4b928 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 a8dff7e151..8234159478 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 14abb81cef..f3944e482e 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 3efc3d0ca6..6476be3345 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 4a8f539caf..bacb5daffb 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 8a0f54696d..1b50fc61ac 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 5bfb5b7cb3..bb704bc1bb 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 a9dcaca5d5..c62a0a920b 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 045185af80..3d074c5775 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 13c7e7dc32..25994aa810 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 a5b2c1a4fc..2c6a1da05a 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 9b732a3986..d98efd1f9c 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 2d8d8a833e..52b748f0c7 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 67b9c69b2f..001fdfb3bd 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 a52c61974c..54ef860796 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 390a8c8d5f..b2fc6881d0 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.
@@ -78,7 +78,7 @@ those in headers, footers and notes.
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 8d10e1c934..50d07d75d2 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 2ed8496fdb..c554fee881 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 a25a523e07..c76dcdc3a8 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 70d6e84109..fc6612a8e9 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 2d6884d44a..9ab2beaea0 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 3204ca8d04..ce5aba47c0 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 6a0394ba41..b95d204d56 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 e88c4ed9f9..a3e0390cca 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 8652eb5d06..6735f9a0f0 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 4dcb577c43..ecb5ad60d6 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 2d179609ee..48f6fb7c93 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 ac901c7d64..8e05d44698 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 186f36f7f8..2b79ffadc2 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 61c1630518..bbf6275ca8 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 9a5230c401..258a2d9536 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
diff --git a/api/types/index.TemplatePageNumberEstimator.html b/api/types/index.TemplatePageNumberEstimator.html
index 6f08b570d7..1fcd5837a2 100644
--- a/api/types/index.TemplatePageNumberEstimator.html
+++ b/api/types/index.TemplatePageNumberEstimator.html
@@ -33,7 +33,7 @@ pages, are written with it.
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.
@@ -44,7 +44,7 @@ measured with the upright one. The layout stops at a character a font's file has
another font. A font the document embeds is measured from the document's own file
@@ -54,7 +54,7 @@ break, and tabs move to their stops, as Word lays them out, and lines are as tal
width tables, so the layout stops at text in a font that isn't in them and isn't given as a file or embedded.
+
diff --git a/api/types/layout.MeasureWidth.html b/api/types/layout.MeasureWidth.html
index d33d038cba..d70e2702e8 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 1f33ab04a3..dc841094b4 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 11b47e3667..0ce3225a25 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 656840b807..b27e53253f 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 a269be1298..0f8238f2ad 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 3bdf8b5d5d..54a8769019 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 34aff4d0b3..5595fd8e08 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 0e29b6ea64..2c1422cb9c 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 8a717671a8..1ce8834e0f 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 e730270e05..0416f5db6d 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 548ad3f3c6..4cd41f6a74 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 ff41bed09f..a6ec037ca2 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 9a1d7492de..c6e10073b4 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 89e0ce4f94..b55b8776f0 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 dac99a9c10..cde54efc7f 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 b4406fa75d..432cffd5b4 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 039f160f37..eb92fb951b 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 0c7946bffc..fff1f04ac7 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 805ad6a6a2..99107f345f 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 c7609e0873..091dc9c37c 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 b5412b8f25..84f889c49b 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 9fc26c047b..f2afe4064f 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 d28c554d73..eab1e6b923 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 a12f07d702..540fc94bc7 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 ab6dd16012..82905115a5 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 1340a6f025..22fb2e7ac7 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 785c5051cb..9fde45e34b 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 62142b1160..27fbd383e3 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 e7cb0ab300..f6d8fcbd4d 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 10cb2194cf..545474d6d4 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 befba33fad..ec7c713c96 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 3c112d6edc..3d235aaf0b 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 edcaa9c732..3681d40e3c 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 711aad27f1..e47ed5cbae 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 4043fc0460..138fa99bc1 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 49063ded9f..1fb3b11bda 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/api/variables/layout.estimatePageNumbers.html b/api/variables/layout.estimatePageNumbers.html
index c39ecfe1b5..786477533b 100644
--- a/api/variables/layout.estimatePageNumbers.html
+++ b/api/variables/layout.estimatePageNumbers.html
@@ -44,7 +44,7 @@ written, and the numbers left blank stay blank, without asking to update the fie
diff --git a/live-examples/lib/layout.iife.js b/live-examples/lib/layout.iife.js
index 7a38f72fa3..3f0c0d76e7 100644
--- a/live-examples/lib/layout.iife.js
+++ b/live-examples/lib/layout.iife.js
@@ -4785,6 +4785,14 @@ var docxLayout = (function(exports) {
*
* @module
*/
+ /** Line widths with the lines from one (`from`) on at a width, broken again there when it is another */
+ var widthsFrom = (widths, from, width) => {
+ var _widths$findLast;
+ return ((_widths$findLast = widths.findLast((given) => given.from <= from)) === null || _widths$findLast === void 0 ? void 0 : _widths$findLast.width) === width ? widths : [...widths.filter((given) => given.from < from), {
+ from,
+ width
+ }];
+ };
var TOLERANCE = .01;
var AUTOMATIC_SPACE = 14;
/**
@@ -4803,6 +4811,8 @@ var docxLayout = (function(exports) {
widowControl: false,
pageBreakBefore: false
};
+ /** Whether a point in a footnote is its start */
+ var atStart = (point) => point === void 0 || point.block === 0 && point.line === 0;
/** The blocks lines and rows are of, in order, with those of the same block one after the other together */
var blocksOf = (pieces) => pieces.reduce((blocks, { index, piece }) => {
const last = blocks[blocks.length - 1];
@@ -5269,6 +5279,8 @@ var docxLayout = (function(exports) {
let continued;
let carried;
let held = [];
+ let heldLines;
+ let deferred;
let spaceAfter = 0;
let openMerges = [];
let sectionSpaceAfter = 0;
@@ -5312,6 +5324,8 @@ var docxLayout = (function(exports) {
continued,
carried,
held,
+ heldLines,
+ deferred,
spaceAfter,
sectionSpaceAfter,
placed: placements.length,
@@ -5326,7 +5340,7 @@ var docxLayout = (function(exports) {
* out again only moves them between the columns of the same page
*/
const restore = (state) => {
- ({pageCount, pageNumber, restart, top, pageContinuation, continuedEndnotes, pageBottom, position, column, columnTop, placedInColumn, deepest, columnBroken, pageNotes, noteArea, notesSection, notesInColumns, filledEnd, continued, carried, held, spaceAfter, sectionSpaceAfter, finished} = state);
+ ({pageCount, pageNumber, restart, top, pageContinuation, continuedEndnotes, pageBottom, position, column, columnTop, placedInColumn, deepest, columnBroken, pageNotes, noteArea, notesSection, notesInColumns, filledEnd, continued, carried, held, heldLines, deferred, spaceAfter, sectionSpaceAfter, finished} = state);
placements.length = Math.min(placements.length, state.placed);
bottom = columnsBottom();
noteArea = Math.max(noteArea, reserved());
@@ -5433,11 +5447,17 @@ var docxLayout = (function(exports) {
const nextTop = () => top - pageContinuation + (endnotesGoOn() ? continuationHeight() : 0);
/** Whether a line or row of the section being laid out is on the page */
const sectionOnPage = () => placements.slice(placements.findLastIndex(({ type }) => type === "page")).some((placement) => (placement.type === "line" || placement.type === "row") && blocks[placement.block].section === sectionIndex);
- const startPage = (isFirstOfSection = false) => {
+ /**
+ * Starts a new page, the first of a section's when it says so. With `notesOnly`, it is for the rest of a footnote
+ * continued from the page before alone, at the end of a section or of the document
+ */
+ const startPage = (isFirstOfSection = false, notesOnly = false) => {
var _restart;
if (balancing !== void 0 && pageCount >= balancing.page) throw new Overflow();
if (pageColumns !== void 0) throw new Unsupported("a section that starts in the next column of columns of other widths and goes on to the next page");
checkReserve();
+ if (deferred !== void 0 && !notesOnly) throw new Unsupported("text after a line whose footnote starts on the next page");
+ deferred = void 0;
if (continuedEndnotes) throw new Unsupported("endnotes that fill a page after the first they are on");
finishPage();
const current = section();
@@ -5482,13 +5502,13 @@ var docxLayout = (function(exports) {
notesSection = sectionIndex;
if (continued !== void 0 && current.columns.length > 1) throw new Unsupported("a footnote across pages in columns");
if (continued !== void 0 && noteArea > bottom - top + TOLERANCE) {
- if (first) throw new Unsupported("a footnote continued across a section break onto a page of its own");
+ if (first) throw new Unsupported("a footnote continued across a continuous 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);
+ }) <= bottom - top + TOLERANCE, true);
if (to.block === from.block && to.line === from.line) throw new Unsupported("a footnote line taller than a page");
carried = {
name,
@@ -5583,6 +5603,7 @@ var docxLayout = (function(exports) {
var _pageColumns2, _end$format$spaceAfte, _restart2;
const previous = section();
const current = sections[index];
+ if (carried !== void 0 && !continuesOnPage(previous, current) && !startsInNextColumn(previous, current)) startPage(false, true);
lastPages.set(sectionIndex, pageCount);
for (let skipped = sectionIndex + 1; skipped < index; skipped++) sharingPages.add(skipped);
if (current.unsupported) throw new Unsupported(current.unsupported);
@@ -5641,31 +5662,40 @@ var docxLayout = (function(exports) {
* The height of the tallest of the columns footnotes are laid out in when they fit in columns of a height, or
* undefined when they don't: one paragraph after the other from the first column, breaking between lines as widow
* control and keepLines let them, below the separator at the top of each (`separator`, with the space after it,
- * `separatorAfter`). Each line placed is given to `place`, with the column it is in and how far down it its top is
+ * `separatorAfter`). Each paragraph (`measure`, by its index, of `count`) is broken into lines at the width of the
+ * column each goes in (`columns`), so the part of it that goes on into a column of another width is broken again there,
+ * as Word breaks it (`word-watertight-stops.docx` SP7). Each line placed is given to `place`, with the column it is in,
+ * how far down it its top is, and the line
*/
- const fillNoteColumns = (paragraphs, count, separator, separatorAfter, height, place = () => void 0) => {
+ const fillNoteColumns = (count, measure, columns, separator, separatorAfter, height, place = () => void 0) => {
let noteColumn = 0;
let used = separator;
let above = separatorAfter;
let tallest = separator;
- for (const [at, paragraph] of paragraphs.entries()) {
+ for (let at = 0; at < count; at++) {
let from = 0;
- while (from < paragraph.lines.length) {
+ let widths = [];
+ for (;;) {
+ widths = widthsFrom(widths, from, columns[noteColumn]);
+ const paragraph = measure(at, widths);
+ if (from >= paragraph.lines.length) {
+ above = paragraph.spaceAfter;
+ break;
+ }
const space = above === void 0 ? 0 : between(above, from === 0 ? paragraph.spaceBefore : 0);
const rest = paragraph.lines.slice(from);
const placed = linesThatFit(rest, height - used - space, paragraph, from === 0).count;
- for (const [offset] of rest.slice(0, placed).entries()) place(at, from + offset, noteColumn, used + space + linesHeight(rest.slice(0, offset)));
+ for (const [offset, line] of rest.slice(0, placed).entries()) place(at, from + offset, noteColumn, used + space + linesHeight(rest.slice(0, offset)), line);
used += placed > 0 ? space + linesHeight(rest.slice(0, placed)) : 0;
tallest = Math.max(tallest, used);
from += placed;
if (from < paragraph.lines.length) {
noteColumn++;
- if (noteColumn >= count) return;
+ if (noteColumn >= columns.length) return;
used = separator;
above = separatorAfter;
}
}
- above = paragraph.spaceAfter;
}
return tallest;
};
@@ -5691,7 +5721,8 @@ var docxLayout = (function(exports) {
*/
const noteStack = (notes, split, from, columns = noteColumns(), fullWidth = textWidth()) => {
var _pieces$find, _columns$;
- const separator = from === void 0 ? footnoteSeparator : footnoteContinuationSeparator;
+ const continuedFrom = from !== void 0 && !atStart(from.from);
+ const separator = continuedFrom ? footnoteContinuationSeparator : footnoteSeparator;
const pieces = [
...separator.map((block, index) => ({
block,
@@ -5707,25 +5738,30 @@ var docxLayout = (function(exports) {
if (unsupported) throw new Unsupported(unsupported);
if (pieces.some(({ block }) => block.type === "paragraph" && block.borders !== void 0)) throw new Unsupported("a paragraph border in a footnote");
if (pieces.some(({ block }) => hasAutomaticSpace(block))) throw new Unsupported("automatic spacing in a footnote");
- 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$ : fullWidth;
- /** 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) => {
+ /**
+ * A piece's paragraph, with only its lines in the piece, broken at a width or at the widths of the columns its
+ * lines go in, or its table's rows as a line that doesn't break, at the width of the column it goes in
+ */
+ const measured = ({ block, start, end }, index, widths = width) => {
var _pieces, _pieces2;
- if (block.type === "table") return _objectSpread2(_objectSpread2({}, UNBROKEN), {}, { lines: [{
- height: sum(rowHeights(sizedToPlace(block, width)).slice(start, end)),
- markers: [],
- text: "",
- textWidth: 0
- }] });
- 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);
+ if (block.type === "table") {
+ const tableWidth = typeof widths === "number" ? widths : widths[0].width;
+ return _objectSpread2(_objectSpread2({}, UNBROKEN), {}, { lines: [{
+ height: sum(rowHeights(sizedToPlace(block, tableWidth)).slice(start, end)),
+ markers: [],
+ text: "",
+ textWidth: 0
+ }] });
+ }
+ const paragraph = measureParagraph(block, widths, (_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,
+ before: continuedFrom && index === separator.length ? 0 : spaceBefore,
after
};
});
@@ -5739,10 +5775,9 @@ var docxLayout = (function(exports) {
if (columns !== void 0) {
var _separatorParts;
const separatorParts = parts.slice(0, separator.length);
- 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, place) => fillNoteColumns(paragraphs, columns.length, separatorHeight, separatorAfter, height, place);
+ const fill = (height, place) => fillNoteColumns(pieces.length - separator.length, (paragraph, widths) => measured(pieces[separator.length + paragraph], separator.length + paragraph, widths), columns, separatorHeight, separatorAfter, height, place);
let short = separatorHeight;
let tall = fill(Infinity);
while (tall - short > TOLERANCE) {
@@ -5765,6 +5800,8 @@ var docxLayout = (function(exports) {
const space = columns.length > 1 ? (textWidth(current) - sum(columns)) / (columns.length - 1) : 0;
return current.marginLeft + current.gutter + sum(columns.slice(0, index)) + index * space;
};
+ /** Whether two sections' columns are as wide and where the other's are across the page */
+ const sameColumns = (one, other) => one.columns.length === other.columns.length && one.columns.every((width, index) => width === other.columns[index] && columnLeft(one, index) === columnLeft(other, index));
/**
* A line placed with its top at a height (`y`), in the room between its paragraph's indents in a width that starts at
* `left`: a column, or the page's text. The first line of a paragraph starts at its first line indent
@@ -5797,11 +5834,11 @@ var docxLayout = (function(exports) {
const columns = noteColumns();
const stack = noteStack(split ? pageNotes.slice(0, -1) : pageNotes, split, from, columns, textWidth(current));
const notesTop = pageBottom - stack.area;
- /** A piece's lines, from its first in it, each at a height, in a column, or its table's rows from a height */
- const blockAt = (piece, index, at) => {
+ /** A piece's lines, each at a height, in a column, or its table's rows from a height, in its column's width */
+ const blockAt = (piece, at) => {
const { block, start, end } = piece;
if (block.type === "table") {
- const heights = rowHeights(sizedToPlace(block, stack.width)).slice(start, end);
+ const heights = rowHeights(sizedToPlace(block, at[0].width)).slice(start, end);
return {
type: "table",
index: piece.index,
@@ -5812,21 +5849,23 @@ var docxLayout = (function(exports) {
}))
};
}
- const { lines } = stack.measured(piece, index);
return {
type: "paragraph",
index: piece.index,
- lines: at.map(({ line, left, y }) => placedLine(lines[line], block.format, start + line === 0, left, stack.width, y))
+ lines: at.map(({ line, isFirst, left, y, width }) => placedLine(line, block.format, isFirst, left, width, y))
};
};
const placed = stack.pieces.map(() => []);
if (stack.fillColumns !== void 0) {
const noteSection = sections[notesInColumns];
- stack.fillColumns((paragraph, line, noteColumn, offset) => {
+ stack.fillColumns((paragraph, line, noteColumn, offset, laidOut) => {
+ const { start } = stack.pieces[stack.separatorCount + paragraph];
placed[stack.separatorCount + paragraph].push({
- line,
+ line: laidOut,
+ isFirst: start + line === 0,
left: columnLeft(noteSection, noteColumn),
- y: notesTop + offset
+ y: notesTop + offset,
+ width: noteSection.columns[noteColumn]
});
});
} else {
@@ -5834,16 +5873,18 @@ var docxLayout = (function(exports) {
for (const [index, piece] of stack.pieces.entries()) {
y += index === 0 ? 0 : stack.parts[index - 1].height + between(stack.parts[index - 1].after, stack.parts[index].before);
const { lines } = stack.measured(piece, index);
- for (const [line] of lines.entries()) placed[index].push({
- line,
+ for (const [line, laidOut] of lines.entries()) placed[index].push({
+ line: laidOut,
+ isFirst: piece.start + line === 0,
left: columnLeft(current, 0),
- y: y + linesHeight(lines.slice(0, line))
+ y: y + linesHeight(lines.slice(0, line)),
+ width: stack.width
});
}
}
return groupedNotes(stack.pieces.flatMap((piece, index) => piece.note === void 0 || placed[index].length === 0 ? [] : [{
note: piece.note,
- block: blockAt(piece, index, placed[index])
+ block: blockAt(piece, placed[index])
}]), footnoteNumbers);
};
/** Places the footnotes at the bottom of the page when it is full, once */
@@ -5872,12 +5913,14 @@ var docxLayout = (function(exports) {
/** 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, 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
+ * The room footnotes take below those on the page already. Those of a section whose columns are the same as those of
+ * the page's first footnote's are laid out in them with the others, one after the other from the first column
+ * (`word-watertight-stops.docx` SP6). It stops at one referred to from a section of other columns, when the page's
+ * footnotes are in columns, which Word hasn't been seen to lay out
*/
const moreNoteRoom = (notes) => {
if (notes.length === 0) return 0;
- if (notesInColumns !== void 0 && notesInColumns !== sectionIndex) stopOnPage("a footnote on a page whose footnotes are in another section's columns");
+ if (notesInColumns !== void 0 && !sameColumns(sections[notesInColumns], section())) stopOnPage("a footnote on a page whose footnotes are in another section's columns");
return pageArea([...pageNotes, ...notes]) - noteArea;
};
/**
@@ -5950,44 +5993,77 @@ var docxLayout = (function(exports) {
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));
};
/**
+ * Whether widow control and keepLines keep all of a table row's lines on one page: those of a row whose cells each
+ * have a paragraph of 3 lines or fewer with widow control, or one kept together, which can't break with lines on
+ * both pages
+ */
+ const heldWhole = (row) => row.cells.every((cell) => {
+ const [first, ...rest] = blocksWithRoom(cell);
+ if (cell.vertical || first === void 0) return true;
+ if (rest.length > 0 || first.type === "table") return false;
+ const { lines, keepLines, widowControl } = measureParagraph(first, cell.width, void 0, void 0, true);
+ return keepLines || lines.length === 1 || widowControl && lines.length <= 3;
+ });
+ /**
+ * Whether a footnote breaks across pages before a table row: one that widow control and keepLines keep whole does, and
+ * goes on the next page whole, as Word moves a row of 3 lines there (`word-watertight-stops.docx` SP3c). Whether Word
+ * breaks a row of a footnote whose lines could go on both pages isn't known
+ */
+ const breaksBeforeRow = (row) => !canSplit(row) || heldWhole(row);
+ /**
* 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
+ * (`word-probes.docx` U2a to U2h). A first paragraph kept together goes on the page whole, and one kept with the next
+ * goes with the least of what follows it, so a reference whose footnote starts with either moves to the next page with
+ * it where that doesn't fit (`word-watertight-stops.docx` SP3a, SP3b). Undefined when that is all of it. A row that
+ * could break isn't known to, so it needs no room, and the layout stops when it doesn't fit
*/
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
+ const kept = note.findIndex((part) => part.type !== "paragraph" || part.format.keepNext !== true);
+ const index = kept === -1 ? note.length - 1 : kept;
+ const block = note[index];
+ if (block === void 0) return;
+ const point = (line, length) => index === note.length - 1 && line >= length ? void 0 : {
+ block: index,
+ line
};
+ if (block.type === "table") {
+ const { rows } = fitted(block, noteWidth());
+ return point(breaksBeforeRow(rows[0]) ? 1 : 0, rows.length);
+ }
+ const { lines, widowControl, keepLines } = measureParagraph(block, noteWidth());
+ return point(keepLines || widowControl && lines.length <= 3 ? lines.length : widowControl ? 2 : 1, lines.length);
};
/**
* 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
+ * with the last continued on the next page after the least of it that can go on this one, when it can be. In columns,
+ * all of it, as Word moves a reference to the next column or page with all of its footnote, rather than continue it,
+ * even where part of it would fit (`word-watertight-stops.docx` SP1a, SP1b)
*/
const leastAreaOf = (notes, from, columns = noteColumns()) => {
const name = notes[notes.length - 1];
- const to = name === void 0 ? void 0 : leastPart(name);
+ const to = name === void 0 || columns !== 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);
};
/**
+ * Whether a footnote can't go on a page with its reference: the least of it that has to go there, with the separator,
+ * is taller than the page, as a paragraph kept together of 55 lines is (`word-watertight-stops.docx` SP5)
+ */
+ const startsOnNextPage = (name) => leastAreaOf([name], void 0, void 0) > pageBottom - top + TOLERANCE;
+ /**
+ * Stops at a line or paragraph kept with the next below the top of a page that would move to the next page for a
+ * footnote that can't go on a page with it: whether Word moves it, or leaves it where it is, as it leaves one at the top
+ * of a page (SP5), isn't known
+ */
+ const stopAtNoteTallerThanPage = (notes) => {
+ if (notes.some(startsOnNextPage)) throw new Unsupported("a footnote taller than a page from below the top of a page");
+ };
+ /**
* 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
*/
@@ -5999,10 +6075,14 @@ var docxLayout = (function(exports) {
* 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.
+ * on each page (`word-probes.docx` U2a to U2h). A row that widow control keeps whole goes on the next page, and a
+ * table's header rows aren't repeated above the rest of it there (`word-watertight-stops.docx` SP3c, SP3d). On a page
+ * of footnotes alone (`ownPage`), a paragraph kept together that starts it and is taller than the page breaks where
+ * the page ends, as the body's does (SP5). Whether Word keeps a footnote's other paragraphs together or with the next
+ * across pages, breaks a row whose lines could go on both pages, or leaves a table's header rows alone at the bottom of
+ * a page in one, isn't known, so it stops there.
*/
- const fillNote = (name, from, fits) => {
+ const fillNote = (name, from, fits, ownPage = false) => {
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) => ({
@@ -6023,8 +6103,8 @@ var docxLayout = (function(exports) {
};
};
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");
+ if (!breaksBeforeRow(fitted(block, width).rows[line])) throw new Unsupported("a table row in a footnote that would break across pages");
+ if (line > 0 && block.rows.slice(0, line).every(({ header }) => header)) throw new Unsupported("a table's header rows at the bottom of a page in a footnote");
return breakBefore(line);
}
const begin = index === from.block ? from.line : 0;
@@ -6033,19 +6113,21 @@ var docxLayout = (function(exports) {
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");
+ if (keepLines && count > 0 && !(ownPage && index === from.block)) 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.
+ * next page, as Word continues it. The footnote takes the rest of the page then, so what follows goes on the next. In
+ * columns, Word moves a line or row with its footnotes rather than continue one (`word-watertight-stops.docx` SP1), so
+ * they fit here.
*
* @param below - The room below the lines that the footnotes don't take: that of the bottom border of a table that
* breaks across pages below them
*/
const placeNotes = (notes, below = 0) => {
+ if (notes.length > 0 && deferred !== void 0) throw new Unsupported("a footnote after one that starts on the next page");
if (notes.length === 0 || position + below <= linesBottom(moreNoteRoom(notes)) + TOLERANCE) {
addNotes(notes);
return;
@@ -6068,28 +6150,6 @@ var docxLayout = (function(exports) {
from: to
};
};
- /**
- * 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) => {
- const index = notes.findIndex((_, note) => noteCost(moreNoteRoom([...before, ...notes.slice(0, note + 1)])) > below + TOLERANCE);
- const name = notes[index];
- if (name === void 0 || footnotes.get(name).length === 0) return;
- const firstLine = {
- name,
- to: {
- block: 0,
- line: 1
- }
- };
- if (noteCost(pageArea([
- ...pageNotes,
- ...before,
- ...notes.slice(0, index)
- ], firstLine) - noteArea) <= below + TOLERANCE) stopOnPage("a footnote across pages in columns");
- };
/** The number of the page as the section writes it, after the chapter number when it has one */
const pageText = () => {
const { numberFormat, chapters } = section();
@@ -6162,17 +6222,9 @@ var docxLayout = (function(exports) {
*/
const spaceAbove = () => placedInColumn || atSectionStart() ? spaceAboveOf(paragraph.spaceBefore) : 0;
let widths = [];
- /** The widths with the lines from one (`from`) on at the width of a column, broken again there when it is another */
- const widthsFrom = (from, width) => {
- var _widths$findLast;
- return ((_widths$findLast = widths.findLast((given) => given.from <= from)) === null || _widths$findLast === void 0 ? void 0 : _widths$findLast.width) === width ? widths : [...widths.filter((given) => given.from < from), {
- from,
- width
- }];
- };
let index = 0;
for (;;) {
- widths = widthsFrom(index, columnsSection().columns[column]);
+ widths = widthsFrom(widths, index, columnsSection().columns[column]);
const lines = linesOf(block, widths);
const remaining = linesToBreak(lines, index);
const isFirstLine = index === 0;
@@ -6184,18 +6236,32 @@ var docxLayout = (function(exports) {
const notesOnPage = noteArea > 0 || reserved() > 0;
const hangs = (upTo) => hangsBelow(notesOnPage || notesOf(upTo).length > 0, ends && upTo === remaining.length && paragraph.borderBelow > 0);
const { fits, count: kept } = linesThatFit(remaining, room, paragraph, isFirstLine, (upTo) => noteCost(leastNoteRoom(notesOf(upTo))) + (ends && upTo === remaining.length ? paragraph.borderBelow : 0), hangs);
- if (section().columns.length > 1 && linesThatFit(remaining, room, paragraph, isFirstLine, void 0, hangs).fits > fits) {
- const above = room - linesHeight(remaining.slice(0, fits));
- stopAtPartOfFootnote(notesOf(fits), notesIn(remaining[fits].markers), above - remaining[fits].height);
- }
- let count = kept;
+ let count = heldLines !== void 0 && heldNotes.length > 0 && !holdNotes ? Math.min(kept, heldLines) : kept;
+ /** Whether its first line fits without its footnotes, when it doesn't with them */
+ const fitsAlone = () => fits === 0 && linesThatFit(remaining, room, paragraph, isFirstLine, void 0, hangs).fits > 0;
+ const lineNotes = notesOf(1);
+ if (count === 0 && placedInColumn && columnsSection().columns.length === 1 && fitsAlone()) stopAtNoteTallerThanPage(lineNotes);
if (count === 0 && !placedInColumn && continued === void 0) {
- if (fits === 0 && notesOf(1).length > 0) {
+ if (fits === 0 && lineNotes.length > 0) {
stopIfBalancing();
- throw new Unsupported("a line and its footnote taller than a page");
+ if (!fitsAlone()) throw new Unsupported("a line and its footnote taller than a page");
+ if (columnsSection().columns.length > 1) {
+ if (column === 0) throw new Unsupported("a footnote across pages in columns");
+ } else if (lineNotes.length === 1 && startsOnNextPage(lineNotes[0])) {
+ [deferred] = lineNotes;
+ carried = {
+ name: deferred,
+ from: {
+ block: 0,
+ line: 0
+ }
+ };
+ count = 1;
+ } else throw new Unsupported("a line and its footnote taller than a page");
+ } else {
+ if (linesThatFit(remaining, pageBottom - noteArea - position - space, paragraph, isFirstLine).count > 0) stopIfBalancing();
+ count = Math.max(1, fits);
}
- if (linesThatFit(remaining, pageBottom - noteArea - position - space, paragraph, isFirstLine).count > 0) stopIfBalancing();
- count = Math.max(1, fits);
}
if (count > 0) {
position += space;
@@ -6211,10 +6277,12 @@ var docxLayout = (function(exports) {
}
if (index + count === lines.length) position += paragraph.borderBelow;
spaceAfter = 0;
- const notes = notesOf(count);
+ const startsLater = deferred;
+ const notes = notesOf(count).filter((name) => name !== startsLater);
if (holdNotes && index + count === lines.length) held = notes;
else {
held = [];
+ heldLines = void 0;
placeNotes(notes);
}
placedInColumn = true;
@@ -6368,7 +6436,6 @@ var docxLayout = (function(exports) {
let cutAt = roomAbove(0);
let filled = whole;
while (placesAny(filled) && !fitsWith(filled, leastNoteRoom(notesOf(filled)))) {
- if (section().columns.length > 1) stopAtPartOfFootnote([], notesOf(filled), roomAbove(0) - tallestOf(filled));
cutAt = Math.max(...filled.map((part, cell) => part.lines.length > 0 ? heightInRow(part, cell) : 0)) - 2 * TOLERANCE;
filled = fill(cutAt);
}
@@ -6582,7 +6649,6 @@ var docxLayout = (function(exports) {
if (table.cellSpacing !== void 0 && row.breakBorder === void 0 && !rowFits(roomNeeded, notes)) throw new Unsupported("a table with space between its cells and borders across pages");
placeKeptRows(index);
while (keptWhole && !rowStays(roomNeeded, notes) && (placedInColumn || continued !== void 0)) {
- if (section().columns.length > 1) stopAtPartOfFootnote([], notes, linesBottom() - position - roomNeeded);
closeMerges(position);
startTablePage(index);
}
@@ -6662,13 +6728,13 @@ var docxLayout = (function(exports) {
const next = measured(index + chain);
const firstLines = next.keepLines || next.widowControl && next.lines.length <= 3 ? next.lines.length : next.widowControl ? 2 : 1;
const nextLines = next.lines.slice(0, firstLines);
- return {
+ return _objectSpread2({
height: keptLines + between(lastAfter, next.spaceBefore) + next.borderAbove + linesHeight(nextLines) + (nextLines.length === next.lines.length ? next.borderBelow : 0),
spacingBelow: nextLines.length === next.lines.length && next.borderBelow > 0 ? 0 : (_nextLines$at$spacing = (_nextLines$at = nextLines.at(-1)) === null || _nextLines$at === void 0 ? void 0 : _nextLines$at.spacingBelow) !== null && _nextLines$at$spacing !== void 0 ? _nextLines$at$spacing : 0,
notes: [...keptNotes, ...notesIn(nextLines.flatMap(({ markers }) => markers))],
kept: keptNotes,
keptWith: chain === 0 ? "nothing" : firstLines === next.lines.length && !next.pageBreakBefore ? "whole" : "part"
- };
+ }, next.pageBreakBefore ? {} : { keptLines: firstLines });
};
/**
* Whether a block is the empty paragraph that ends a section right after a table. Word gives it a line of its own, as
@@ -6730,9 +6796,10 @@ var docxLayout = (function(exports) {
if (!fitsHere && column + 1 < columns.length && fitsBelow(columnTop, noteArea + moreNoteRoom(here.notes), columns[column + 1])) nextColumn();
else if (!fitsHere && fitsBelow(nextTop(), leastAreaOf(here.notes, carried, columns.length > 1 ? columns : void 0), columns[0])) startPage();
}
- const { notes, kept, keptWith, all, fitsWith } = keptHere();
+ const { notes, kept, keptWith, keptLines, 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");
+ if (holdNotes && keptWith === "part" && keptLines === void 0) throw new Unsupported("a footnote continued below a paragraph kept with the next");
+ heldLines = holdNotes && keptWith === "part" ? keptLines : void 0;
}
placeParagraph(block, paragraph, holdNotes);
sectionSpaceAfter = void 0;
@@ -6828,7 +6895,7 @@ var docxLayout = (function(exports) {
startPage(true);
placeBlocks(0, blocks.length);
checkReserve();
- if (carried !== void 0) startPage();
+ if (carried !== void 0) startPage(false, true);
} catch (error) {
if (!(error instanceof Unsupported)) throw error;
finishPage();
diff --git a/usage/layout.md b/usage/layout.md
index b71c0cbac1..6864493937 100644
--- a/usage/layout.md
+++ b/usage/layout.md
@@ -198,7 +198,7 @@ The pages are laid out with the widths and heights of the characters of the font
- indents in characters (`firstLineChars`, and the left, right and hanging indents in characters of documents Word made), and space before and after in lines, which Word takes in place of those in twips. A character of a first line or hanging indent is as wide as the paragraph's first character is tall, and one of a left or right indent as its mark, and a hanging indent in characters puts the first line at the left indent and the other lines further in. A line is 12 points, whatever the font
- keeping a paragraph with the next, keeping its lines together, widow and orphan control, and page breaks
- numbered and bulleted lists, including those a paragraph's style numbers it in
-- 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. A table row refers to footnotes as a line does: it moves to the next page with a footnote that doesn't fit below it, and one that breaks across pages has each line's footnote on the page the line is on, and breaks after a line whose footnote continues. 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. The separator above the endnotes goes on the page of their first line, and on each page after the first they are on, the continuation separator is above them, as Word puts them. Footnotes and endnotes are numbered as Word numbers them, 1, 2, 3 and i, ii, iii, or in the format and from the number a document or its sections give, afresh in each section when they say so
+- 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. A first paragraph kept together, or kept with the next, stays with its reference whole, with the first lines of what it is kept with, and a table row whose lines widow control keeps together goes on the next page whole. A table's header rows aren't repeated above the rest of a footnote on the next page. The footnote of a line kept with a longer paragraph goes below the first lines of it that the line is kept with, and the rest of the paragraph goes on the next page. One longer than a page fills the pages after it, and the text goes on above its end. Before a section that starts on a new page, the rest of a footnote goes on pages of its own, which belong to the section its reference is in, and the new section starts after them. A line at the top of a page whose footnote can't go on a page with it, such as one that starts with a paragraph kept together that is taller than a page, stays there, and the footnote starts on the next page. A table row refers to footnotes as a line does: it moves to the next page with a footnote that doesn't fit below it, and one that breaks across pages has each line's footnote on the page the line is on, and breaks after a line whose footnote continues. 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, each part broken at the width of the column it is in, and every column ends above them. Footnotes from another section of the same columns on the page go on in them. A line or table row in columns whose footnotes don't fit below it moves to the next column, or the next page, with all of them, as Word moves it, rather than continue one. The separator above the endnotes goes on the page of their first line, and on each page after the first they are on, the continuation separator is above them, as Word puts them. Footnotes and endnotes are numbered as Word numbers them, 1, 2, 3 and i, ii, iii, or in the format and from the number a document or its sections give, afresh in each section when they say so
- run formatting that changes how much room text takes, as Word lays it out. Superscript and subscript (`superScript`, `subScript`) are drawn at 65% of the text's size, to the nearest half-point and down from a quarter, so 7 points at 11 and 9.5 at 15, and small capitals (`smallCaps`) at 80%, so 9 points at 11; both take up the line of their run's own size, so they never make a line taller. Raised and lowered text (`position`) raises the line's top or lowers its bottom by as much as it goes past the rest of the line: a word raised 6 points makes a line of Calibri 11 120 twips taller, and a smaller word raised a little none. Emphasis marks (`emphasisMark`) take a quarter of their line, over it, or under it for dots below; line spacing that gives a line a little more room adds it below the marks' room, and spacing that gives it enough, such as 1.5 lines, holds the marks. A border around text (`border` on a `TextRun`) takes its space and its width on each side of the text, and above and below it, as wide as a paragraph's border of its style: two runs next to each other with the same border are in one box, a box that goes on to the next line starts again there, and a line keeps room for its box to end after its last word
- pictures in the line, which stand on the baseline, so a line with text in it is as tall as the picture and the text below the baseline, as Word makes it. A line with a picture is at least as tall as a line of the picture's run's font, and its multiple line spacing adds a share of that, as Word's does
- tracked changes, as Word lays them out with its markup in balloons beside the page, or in Simple Markup. Deleted text (`DeletedTextRun`), and deleted pictures, tabs and breaks, take no room, nor does text moved elsewhere, and inserted text (`InsertedTextRun`) does. A paragraph whose mark is deleted (`run: { deletion }`) is joined to the next, all in the next one's formatting, style and list, and a section whose break is deleted goes on into the next, on its pages. A paragraph with no paragraph after it to join, before a table or at the end of a table cell or of the document, stays as it is. A footnote whose reference is deleted isn't laid out, but Word still counts it, so the footnotes after it keep their numbers. A deleted table row (`TableRow`'s `deletion`) takes no room in a table without borders between its rows (`borders: TableBorders.NONE`), nor does a table all of whose rows are deleted, but Word still sizes the columns of a table to their text, or widens them for long words, by its deleted rows and deleted text. Deleted and inserted cells, comments and changes of formatting don't move the lines. A document that asks Word to hide its insertions and deletions, or its markup (`w:revisionView`), is laid out the same, as Word for Mac opens it in its own view
@@ -212,11 +212,11 @@ It stops at the first thing it can't lay out yet, and the page numbers of the he
- a picture, shape or table that text wraps around (a table's `float`), a text box, or a text frame
- an equation
-- 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 footnote that continues on the next page where it would break in a paragraph kept together or with the next after its first, in a table row whose lines could go on both pages, or right after a table's header rows; one that continues from a paragraph kept with a table, or with a paragraph that starts a new page, or onto a page of its own after a continuous section break; a footnote line, or a line and the start of its footnote, taller than a page; and a footnote that can't go on a page with its line, from a line below the top of a page, or with text after it that goes on to the next page, or another footnote below it
- a paragraph kept together that is taller than some of the columns of different widths it is in, but not others
- endnotes that fill a page after the first they are on, below which Word puts a line more than the page has room for by the heights of the lines, in a way not yet followed, and endnotes in a section of columns that go on into the next column or page, where Word may put the continuation separator in a way not yet followed
- a section that starts in the next column of columns of other widths, which Word lays out in the page's columns, when it goes on to the next page or has a footnote, where Word's columns for it aren't known
-- footnotes in columns of different widths, a footnote in columns that doesn't fit below its reference, or that moves its reference to the next page when the columns are laid out above it, footnotes referred to from two sections on one page, the first of them in columns, and a footnote in a section that starts in the next column when a column of the section before goes down further than it leaves room for
+- a footnote in columns that is too long for the columns of a page, or that moves its reference to the next page when the columns are laid out above it, footnotes referred to from two sections of different columns on one page, the first of them in columns, and a footnote in a section that starts in the next column when a column of the section before goes down further than it leaves room for
- a line in a table cell taller than a page, a table row kept whole or kept together that is taller than a column, a row whose text and set height are both taller than a page, and one set to a height taller than a page with a footnote or merged cells, or as a header row, and a row that breaks across pages with a table in it
- the text of a cell merged down table rows that goes on across a page break between its rows, or across more than two pages, and one that goes on across pages from a table's header rows, or with a footnote in it
- a line whose multiple line spacing would go below the bottom of the page in a table row that breaks across pages, into the footnotes at the bottom of the page, above its paragraph's border below, or below columns evened out before a continuous section break, and a line of only pictures in a paragraph whose mark is in a larger font than the pictures' runs
The unique identifier for this abstract numbering definition.