Change docx folder to more appropriate "file" folder
This commit is contained in:
21
src/file/paragraph/formatting/page-break.ts
Normal file
21
src/file/paragraph/formatting/page-break.ts
Normal file
@ -0,0 +1,21 @@
|
||||
// http://officeopenxml.com/WPtextSpecialContent-break.php
|
||||
import { Attributes, XmlComponent } from "../../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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user