#1529 - Word wrap feature
This commit is contained in:
14
src/file/paragraph/formatting/word-wrap.ts
Normal file
14
src/file/paragraph/formatting/word-wrap.ts
Normal file
@ -0,0 +1,14 @@
|
||||
// http://officeopenxml.com/WPalignment.php
|
||||
// http://officeopenxml.com/WPtableAlignment.php
|
||||
import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
|
||||
|
||||
export class WordWrapAttributes extends XmlAttributeComponent<{ readonly val: 0 }> {
|
||||
protected readonly xmlKeys = { val: "w:val" };
|
||||
}
|
||||
|
||||
export class WordWrap extends XmlComponent {
|
||||
public constructor() {
|
||||
super("w:wordWrap");
|
||||
this.root.push(new WordWrapAttributes({ val: 0 }));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user