Closed guillomovitch closed 1 year ago
Note that whitespace is significant for XML. Pretty-printing will result in documents with broken signatures, unless the signature is calculated after reformatting the nodes.
Indeed. Here is a better solution, using a dedicated 'indent' action, allowing to reformat before signing. I kept pretty_print option as a lighter alternative, but it now has limited interest.
This PR allows to optionally pretty-print XML output.