fix empty first line
This commit is contained in:
parent
467621733d
commit
26db2473e9
|
@ -180,7 +180,7 @@ function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) {
|
||||||
suppressEmptyNode: true
|
suppressEmptyNode: true
|
||||||
};
|
};
|
||||||
const builder = new fast_xml_parser_1.XMLBuilder(xmlBuilderOptions);
|
const builder = new fast_xml_parser_1.XMLBuilder(xmlBuilderOptions);
|
||||||
const output = builder.build(xmlSource);
|
const output = builder.build(xmlSource).trim();
|
||||||
core.debug(output);
|
core.debug(output);
|
||||||
fs.writeFileSync(tempFileLocation, output);
|
fs.writeFileSync(tempFileLocation, output);
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,7 +193,7 @@ function writeFeedToFile(
|
||||||
|
|
||||||
const builder = new XMLBuilder(xmlBuilderOptions);
|
const builder = new XMLBuilder(xmlBuilderOptions);
|
||||||
|
|
||||||
const output = builder.build(xmlSource);
|
const output = builder.build(xmlSource).trim();
|
||||||
|
|
||||||
core.debug(output);
|
core.debug(output);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue