From 9514629581bfdff5a969f5a224f138cf154f880d Mon Sep 17 00:00:00 2001 From: whyzdev Date: Mon, 12 Dec 2016 23:35:05 -0500 Subject: [PATCH] fix gantt chart cli configuration broken #430; remove json quote around function in the config e.g. axisFormatter --- lib/phantomscript.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/phantomscript.js b/lib/phantomscript.js index 05cd881995a..890e301feb4 100644 --- a/lib/phantomscript.js +++ b/lib/phantomscript.js @@ -46,7 +46,6 @@ var options = { , width: width } , log = logger(options.verbose) - options.sequenceConfig.useMaxWidth = false; page.content = [ @@ -212,7 +211,7 @@ function executeInPage(data) { var xmlSerializer = new XMLSerializer() , contents = data.contents , sequenceConfig = JSON.stringify(data.sequenceConfig) - , ganttConfig = data.ganttConfig + , ganttConfig = JSON.stringify(data.ganttConfig).replace(/"(function.*)}"/, "$1") , toRemove , el , elContent