Fix styles
This commit is contained in:
@ -5,9 +5,7 @@ export class Body extends XmlComponent {
|
|||||||
constructor(sectionPropertiesOptions?: SectionPropertiesOptions) {
|
constructor(sectionPropertiesOptions?: SectionPropertiesOptions) {
|
||||||
super("w:body");
|
super("w:body");
|
||||||
|
|
||||||
this.root.push(
|
this.root.push(new SectionProperties(sectionPropertiesOptions));
|
||||||
new SectionProperties(sectionPropertiesOptions),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public push(component: XmlComponent): void {
|
public push(component: XmlComponent): void {
|
||||||
|
@ -36,7 +36,17 @@ export class SectionProperties extends XmlComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.root.push(new PageSize(mergedOptions.width, mergedOptions.height, mergedOptions.orientation));
|
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 Columns(mergedOptions.space));
|
||||||
this.root.push(new DocumentGrid(mergedOptions.linePitch));
|
this.root.push(new DocumentGrid(mergedOptions.linePitch));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user