mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 11:29:42 +02:00
Fix for issue #400, added unix new line at the end of generated svg
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user