From 272e2496f40ad493b11942d57b081b4e019d17ba Mon Sep 17 00:00:00 2001 From: fmuscolino Date: Thu, 4 Apr 2019 17:43:54 +0200 Subject: [PATCH] Fix duplicated generation of last section properties --- src/file/document/body/body.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file/document/body/body.ts b/src/file/document/body/body.ts index cc8cd9c192..fb8a187645 100644 --- a/src/file/document/body/body.ts +++ b/src/file/document/body/body.ts @@ -37,7 +37,7 @@ export class Body extends XmlComponent { } public prepForXml(): IXmlableObject | undefined { if (this.sections.length === 1) { - this.root.push(this.sections[0]); + this.root.push(this.sections.pop() as SectionProperties); } return super.prepForXml();