From ea1390b86b07b9650d264502da92606ce1adac70 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Mon, 9 May 2016 13:02:59 +0100 Subject: [PATCH] clean up of Text class --- ts/docx/run/text-run.ts | 2 +- ts/docx/run/text.ts | 9 +++++++++ ts/docx/text.ts | 3 --- ts/docx/xml-components/index.ts | 10 +--------- 4 files changed, 11 insertions(+), 13 deletions(-) create mode 100644 ts/docx/run/text.ts delete mode 100644 ts/docx/text.ts diff --git a/ts/docx/run/text-run.ts b/ts/docx/run/text-run.ts index e179f33874..dcf850de6a 100644 --- a/ts/docx/run/text-run.ts +++ b/ts/docx/run/text-run.ts @@ -1,4 +1,4 @@ -import {Text} from "../xml-components"; +import {Text} from "./text"; import {Run} from "../run"; export class TextRun extends Run { diff --git a/ts/docx/run/text.ts b/ts/docx/run/text.ts new file mode 100644 index 0000000000..1b55e9b1c3 --- /dev/null +++ b/ts/docx/run/text.ts @@ -0,0 +1,9 @@ +import {XmlUnitComponent} from "../xml-components" + +export class Text extends XmlUnitComponent { + + constructor(text: string) { + super("w:t"); + this.root = text; + } +} \ No newline at end of file diff --git a/ts/docx/text.ts b/ts/docx/text.ts deleted file mode 100644 index be38a823ce..0000000000 --- a/ts/docx/text.ts +++ /dev/null @@ -1,3 +0,0 @@ -export class Text { - -} diff --git a/ts/docx/xml-components/index.ts b/ts/docx/xml-components/index.ts index 2a01e3a570..096214c5f7 100644 --- a/ts/docx/xml-components/index.ts +++ b/ts/docx/xml-components/index.ts @@ -122,12 +122,4 @@ export class Attributes extends XmlAttributeComponent { this.root = {}; } } -} - -export class Text extends XmlUnitComponent { - - constructor(text: string) { - super("w:t"); - this.root = text; - } -} \ No newline at end of file +} \ No newline at end of file