fixed formatting styles

This commit is contained in:
Igor Bulovski
2018-05-17 15:32:15 +02:00
parent cdb86b741c
commit dadd8c122f
12 changed files with 26 additions and 27 deletions

View File

@ -1,5 +1,5 @@
export * from "./xml-component";
export * from "./attributes";
export * from "./default-attributes";
export * from './imported-xml-component';
export * from "./imported-xml-component";
export * from "./xmlable-object";

View File

@ -24,9 +24,9 @@ describe("XmlComponent", () => {
const child = new TestComponent("w:test1");
child.delete();
xmlComponent.addChildElement(child);
const xml = xmlComponent.prepForXml();
assert.equal(xml['w:test'].length, 0);
assert.equal(xml["w:test"].length, 0);
});
});
});

View File

@ -12,7 +12,7 @@ export abstract class XmlComponent extends BaseXmlComponent {
public prepForXml(): IXmlableObject {
const children = this.root
.filter(c => {
.filter((c) => {
if (c instanceof BaseXmlComponent) {
return !c.isDeleted;
}