Fix for issue #400, added unix new line at the end of generated svg

This commit is contained in:
Knut Sveidqvist 2016-10-31 20:34:34 +01:00
parent 09558e6e9a
commit 214fc1d8c4

View File

@ -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
}