fixed replace key bug
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user