fix empty first line

This commit is contained in:
Evgenii Korolevskii 2022-09-30 02:23:20 +02:00
parent 467621733d
commit 26db2473e9
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -180,7 +180,7 @@ function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) {
suppressEmptyNode: true
};
const builder = new fast_xml_parser_1.XMLBuilder(xmlBuilderOptions);
const output = builder.build(xmlSource);
const output = builder.build(xmlSource).trim();
core.debug(output);
fs.writeFileSync(tempFileLocation, output);
}

View File

@ -193,7 +193,7 @@ function writeFeedToFile(
const builder = new XMLBuilder(xmlBuilderOptions);
const output = builder.build(xmlSource);
const output = builder.build(xmlSource).trim();
core.debug(output);