mirror of
https://github.com/lenaschimmel/queerallyear
synced 2024-11-22 03:13:03 +00:00
Fix cmd tool's svg outpzt
This commit is contained in:
parent
1ae9cf96d2
commit
aed6fc301f
1 changed files with 3 additions and 1 deletions
|
@ -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, ""));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue