Skip to content

Commit

Permalink
fix gantt chart cli configuration broken mermaid-js#430; remove json …
Browse files Browse the repository at this point in the history
…quote around function in the config e.g. axisFormatter
  • Loading branch information
whyzdev committed Dec 13, 2016
1 parent 95a0cb5 commit 9514629
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/phantomscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ var options = {
, width: width
}
, log = logger(options.verbose)

options.sequenceConfig.useMaxWidth = false;

page.content = [
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9514629

Please sign in to comment.