more listing

This commit is contained in:
Dolan
2017-03-08 21:54:52 +00:00
parent 946a222d37
commit d2f777c4e5
5 changed files with 40 additions and 38 deletions

View File

@ -3,10 +3,10 @@ import {XmlComponent} from "../docx/xml-components";
export class Formatter {
format(input: any): Object {
public format(input: any): Object {
input.clearVariables();
this.replaceKeys(input);
let newJson = this.clense(input);
const newJson = this.clense(input);
// console.log(JSON.stringify(newJson, null, " "));
return newJson;
}
@ -18,7 +18,7 @@ export class Formatter {
}
private clense(input: any): Object {
let newJson = this.jsonify(input);
const newJson = this.jsonify(input);
this.deepTraverseJson(newJson, (parent, value, key) => {
if (key === "properties") {