From e57fd8fc5759275ff7862bf0aa0e95df51ce3379 Mon Sep 17 00:00:00 2001 From: Jacob Wright Date: Fri, 15 Sep 2017 08:25:43 -0600 Subject: [PATCH] Fix page/thematic breaks These items are not paragraph properties, but part of the content of the paragraph. --- ts/docx/paragraph/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/docx/paragraph/index.ts b/ts/docx/paragraph/index.ts index 66449451ee..51815ec904 100644 --- a/ts/docx/paragraph/index.ts +++ b/ts/docx/paragraph/index.ts @@ -98,12 +98,12 @@ export class Paragraph extends XmlComponent { } public thematicBreak(): Paragraph { - this.properties.push(new ThematicBreak()); + this.root.push(new ThematicBreak()); return this; } public pageBreak(): Paragraph { - this.properties.push(new PageBreak()); + this.root.push(new PageBreak()); return this; }