Fix: indentation fix

This commit is contained in:
Luís Jesus
2025-03-26 12:41:18 +00:00
parent 44f0856ad4
commit c9f94f5f61

View File

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