Fix page/thematic breaks
These items are not paragraph properties, but part of the content of the paragraph.
This commit is contained in:
@ -98,12 +98,12 @@ export class Paragraph extends XmlComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public thematicBreak(): Paragraph {
|
public thematicBreak(): Paragraph {
|
||||||
this.properties.push(new ThematicBreak());
|
this.root.push(new ThematicBreak());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public pageBreak(): Paragraph {
|
public pageBreak(): Paragraph {
|
||||||
this.properties.push(new PageBreak());
|
this.root.push(new PageBreak());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user