mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 15:59:51 +02:00
Output all CLI log messages in the same way
This commit is contained in:
@@ -46,7 +46,7 @@ var options = {
|
|||||||
width: width,
|
width: width,
|
||||||
outputSuffix: system.args[9]
|
outputSuffix: system.args[9]
|
||||||
}
|
}
|
||||||
var log = logger(options.verbose)
|
// var log = logger(options.verbose)
|
||||||
options.sequenceConfig.useMaxWidth = false
|
options.sequenceConfig.useMaxWidth = false
|
||||||
|
|
||||||
page.content = [
|
page.content = [
|
||||||
@@ -109,12 +109,13 @@ files.forEach(function (file) {
|
|||||||
, serialize.serializeToString(oDOM) + '\n'
|
, serialize.serializeToString(oDOM) + '\n'
|
||||||
, 'w'
|
, 'w'
|
||||||
)
|
)
|
||||||
log('saved svg: ' + filename + '.svg')
|
console.log('saved svg: ' + filename + '.svg')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
window.phantom.exit()
|
window.phantom.exit()
|
||||||
|
|
||||||
|
/*
|
||||||
function logger (_verbose) {
|
function logger (_verbose) {
|
||||||
var verbose = _verbose
|
var verbose = _verbose
|
||||||
|
|
||||||
@@ -130,6 +131,7 @@ function logger (_verbose) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
function resolveSVGElement (element) {
|
function resolveSVGElement (element) {
|
||||||
var prefix = {
|
var prefix = {
|
||||||
|
Reference in New Issue
Block a user