Fix styles

This commit is contained in:
Dolan
2018-01-28 20:34:49 +00:00
parent 635c58c131
commit bbe2e1e46e
2 changed files with 12 additions and 4 deletions

View File

@ -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 {

View File

@ -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));
}