Fix for empty first paragraph
If there is only one section, remove the extraneous empty paragraph during XML creation.
This commit is contained in:
@ -26,6 +26,7 @@ export class Body extends XmlComponent {
|
||||
|
||||
public prepForXml(): IXmlableObject | undefined {
|
||||
if (this.sections.length === 1) {
|
||||
this.root.splice(0, 1);
|
||||
this.root.push(this.sections.pop() as SectionProperties);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user