make default settings in the addSection
This commit is contained in:
@ -28,7 +28,11 @@ export class Body extends XmlComponent {
|
|||||||
if (section instanceof SectionProperties) {
|
if (section instanceof SectionProperties) {
|
||||||
this.sections.push(section);
|
this.sections.push(section);
|
||||||
} else {
|
} else {
|
||||||
this.sections.push(new SectionProperties(section));
|
const params = {
|
||||||
|
...this.defaultSection.Options,
|
||||||
|
...section,
|
||||||
|
};
|
||||||
|
this.sections.push(new SectionProperties(params));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public prepForXml(): IXmlableObject {
|
public prepForXml(): IXmlableObject {
|
||||||
|
Reference in New Issue
Block a user