Description
After upgrading from 3.17.4 to 4.2.7 there was an unexpected change in how XMLBuilder behaved regarding putting line breaks in empty elements.
Input
Code
const builder = new XMLBuilder({
format: true,
});
const xml = builder.build({ root: { profile: [] } });
console.log(xml);
Output
expected data
Description
After upgrading from 3.17.4 to 4.2.7 there was an unexpected change in how XMLBuilder behaved regarding putting line breaks in empty elements.
Input
Code
Output
expected data