docx
Version:
Generate .docx documents with JavaScript (formerly Office-Clippy)
22 lines (19 loc) • 491 B
text/typescript
// http://officeopenxml.com/WPtextSpecialContent-break.php
import { Attributes, XmlComponent } from "file/xml-components";
import { Run } from "../run";
class Break extends XmlComponent {
constructor() {
super("w:br");
this.root.push(
new Attributes({
type: "page",
}),
);
}
}
export class PageBreak extends Run {
constructor() {
super();
this.root.push(new Break());
}
}