mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-14 11:58:33 +05:30
Fix: line break in arrays
This commit is contained in:
parent
1023d8d002
commit
1fbba9b359
1 changed files with 1 additions and 1 deletions
|
|
@ -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}`;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue