Fix cmd tool's svg outpzt

This commit is contained in:
Lena Schimmel 2019-06-17 22:33:16 +02:00
parent 1ae9cf96d2
commit aed6fc301f

View file

@ -12,7 +12,9 @@ function processSvgFile() {
var gradients = doc.getElementsByTagName("defs").item(0);
recolor.prepareGradients(gradients);
recolor.changeGradients(gradients, flags.pan);
fs.writeFileSync("../output.svg", dom.serialize());
var start = '<!--?xml version="1.0" encoding="UTF-8" standalone="no"?--><html><head></head><body>';
var end = '</body></html>';
fs.writeFileSync("../output.svg", dom.serialize().replace(start, "").replace(end, ""));
});
}