paragraph: add support for page break before format property

This commit is contained in:
Igor Bulovski
2018-05-10 19:43:58 +02:00
parent 84e298e7ee
commit cbe9c3ac50
4 changed files with 40 additions and 2 deletions

View File

@ -19,3 +19,12 @@ export class PageBreak extends Run {
this.root.push(new Break());
}
}
/**
* Add page break before the paragraph if there is no one added before.
*/
export class PageBreakBefore extends XmlComponent {
constructor() {
super("w:pageBreakBefore");
}
}