Fix: line break in arrays

This commit is contained in:
Luís Jesus
2025-03-26 11:42:59 +00:00
parent 1023d8d002
commit 1fbba9b359

View File

@@ -46,7 +46,7 @@ const convertObjectToXml = (
if (Array.isArray(value)) {
value.forEach((item) => {
xml += `${getIndentation(options, depth)}<${keyString}>`;
xml += `${getIndentation(options, depth)}<${keyString}>${newline}`;
xml += convertObjectToXml(item, options, depth + 1);
xml += `</${keyString}>${newline}`;
});