From bbe2e1e46e59c6ff0c74a00c94bbce0394e0f465 Mon Sep 17 00:00:00 2001 From: Dolan Date: Sun, 28 Jan 2018 20:34:49 +0000 Subject: [PATCH] Fix styles --- src/file/document/body/body.ts | 4 +--- .../body/section-properties/section-properties.ts | 12 +++++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/file/document/body/body.ts b/src/file/document/body/body.ts index 934424a5a7..fa30099f75 100644 --- a/src/file/document/body/body.ts +++ b/src/file/document/body/body.ts @@ -5,9 +5,7 @@ export class Body extends XmlComponent { constructor(sectionPropertiesOptions?: SectionPropertiesOptions) { super("w:body"); - this.root.push( - new SectionProperties(sectionPropertiesOptions), - ); + this.root.push(new SectionProperties(sectionPropertiesOptions)); } public push(component: XmlComponent): void { diff --git a/src/file/document/body/section-properties/section-properties.ts b/src/file/document/body/section-properties/section-properties.ts index b10d9be3c7..097fff225f 100644 --- a/src/file/document/body/section-properties/section-properties.ts +++ b/src/file/document/body/section-properties/section-properties.ts @@ -36,7 +36,17 @@ export class SectionProperties extends XmlComponent { }; this.root.push(new PageSize(mergedOptions.width, mergedOptions.height, mergedOptions.orientation)); - this.root.push(new PageMargin(mergedOptions.top, mergedOptions.right, mergedOptions.bottom, mergedOptions.left, mergedOptions.header, mergedOptions.footer, mergedOptions.gutter)); + this.root.push( + new PageMargin( + mergedOptions.top, + mergedOptions.right, + mergedOptions.bottom, + mergedOptions.left, + mergedOptions.header, + mergedOptions.footer, + mergedOptions.gutter, + ), + ); this.root.push(new Columns(mergedOptions.space)); this.root.push(new DocumentGrid(mergedOptions.linePitch)); }