2018-11-02 02:51:57 +00:00
|
|
|
import { SpaceType } from "file/space-type";
|
2022-06-15 00:07:12 +01:00
|
|
|
import { XmlComponent } from "file/xml-components";
|
2016-05-09 13:02:59 +01:00
|
|
|
|
2022-06-15 00:07:12 +01:00
|
|
|
import { TextAttributes } from "../text-attributes";
|
2016-05-09 13:02:59 +01:00
|
|
|
|
2017-04-14 11:01:47 +02:00
|
|
|
export class Text extends XmlComponent {
|
2016-05-09 13:02:59 +01:00
|
|
|
constructor(text: string) {
|
|
|
|
super("w:t");
|
2018-11-02 02:51:57 +00:00
|
|
|
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
2019-11-21 01:02:46 +00:00
|
|
|
|
|
|
|
this.root.push(text);
|
2016-05-09 13:02:59 +01:00
|
|
|
}
|
2017-03-08 21:49:41 +00:00
|
|
|
}
|