Fix page/thematic breaks

These items are not paragraph properties, but part of the content of the paragraph.
This commit is contained in:
Jacob Wright
2017-09-15 08:25:43 -06:00
committed by GitHub
parent 411c0dadb5
commit e57fd8fc57

View File

@ -98,12 +98,12 @@ export class Paragraph extends XmlComponent {
}
public thematicBreak(): Paragraph {
this.properties.push(new ThematicBreak());
this.root.push(new ThematicBreak());
return this;
}
public pageBreak(): Paragraph {
this.properties.push(new PageBreak());
this.root.push(new PageBreak());
return this;
}