Merge branch 'master' of github.com:dolanmiu/docx into feat/right-indent

This commit is contained in:
Dolan Miu
2019-12-27 01:37:37 +00:00
6 changed files with 55 additions and 16 deletions

View File

@ -27,6 +27,7 @@ export class Body extends XmlComponent {
public prepForXml(file?: File): IXmlableObject | undefined {
if (this.sections.length === 1) {
this.root.splice(0, 1);
this.root.push(this.sections.pop() as SectionProperties);
}