mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-18 21:49:31 +02:00
Fix: line break in arrays
This commit is contained in:
@@ -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}`;
|
||||
});
|
||||
|
Reference in New Issue
Block a user