fixed replace key bug

This commit is contained in:
Dolan Miu
2016-05-10 00:31:39 +01:00
parent 92f34ead53
commit 80661ac551

View File

@ -4,8 +4,8 @@ import {XmlComponent} from "../docx/xml-components";
export class Formatter { export class Formatter {
format(input: any): Object { format(input: any): Object {
this.replaceKeys(input);
input.clearVariables(); input.clearVariables();
this.replaceKeys(input);
var newJson = this.clense(input); var newJson = this.clense(input);
//console.log(JSON.stringify(newJson, null, " ")); //console.log(JSON.stringify(newJson, null, " "));
return newJson; return newJson;