mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Fix for issue #400, added unix new line at the end of generated svg
This commit is contained in:
parent
09558e6e9a
commit
214fc1d8c4
@ -114,7 +114,7 @@ files.forEach(function(file) {
|
||||
var serialize = new XMLSerializer();
|
||||
fs.write(
|
||||
options.outputDir + fs.separator + filename + '.svg'
|
||||
, serialize.serializeToString(oDOM)
|
||||
, serialize.serializeToString(oDOM)+'\n'
|
||||
, 'w'
|
||||
)
|
||||
log('saved svg: ' + filename + '.svg')
|
||||
@ -286,7 +286,7 @@ function executeInPage(data) {
|
||||
, height*scalefactor
|
||||
)
|
||||
|
||||
svgValue = xmlSerializer.serializeToString(svg)
|
||||
svgValue = xmlSerializer.serializeToString(svg)+"\n";
|
||||
//console.log('confWidth: '+document.head.outerHTML);
|
||||
return svgValue
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user