Skip to content

Option "indent" has no effect in version 0.6.2 #715

@developer-labs-lcc

Description

@developer-labs-lcc

Setting more than the default 2 spaces as an option for indents does nothing:

const builder = new xml2js.Builder({ pretty: true, indent: ' ', newline: '\n' });

Only if you change the spaces in the file lib/defaults.js it works:

renderOpts: { 'pretty': true, 'indent': ' ', 'newline': '\n' },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions