mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 14:09:31 +02:00
Fix: line break in arrays
This commit is contained in:
@@ -46,7 +46,7 @@ const convertObjectToXml = (
|
|||||||
|
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
value.forEach((item) => {
|
value.forEach((item) => {
|
||||||
xml += `${getIndentation(options, depth)}<${keyString}>`;
|
xml += `${getIndentation(options, depth)}<${keyString}>${newline}`;
|
||||||
xml += convertObjectToXml(item, options, depth + 1);
|
xml += convertObjectToXml(item, options, depth + 1);
|
||||||
xml += `</${keyString}>${newline}`;
|
xml += `</${keyString}>${newline}`;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user